tsyringe
tsyringe copied to clipboard
Docs: fix resource import in README
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) {}
}