Skip to content

Docs: fix resource import in README#269

Open
juliolmuller wants to merge 1 commit intomicrosoft:masterfrom
juliolmuller:patch-1
Open

Docs: fix resource import in README#269
juliolmuller wants to merge 1 commit intomicrosoft:masterfrom
juliolmuller:patch-1

Conversation

@juliolmuller
Copy link

Small adjsutment of README code examples.

- import {injectable, injectAll} from "tsyringe";
+ import {injectable, inject} from "tsyringe";

@injectable()
class Foo {
  constructor(@inject("Database", { isOptional: true }) private database?: Database) {}
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants