We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Here is the declaration file:
import { AnyObject } from '../types/basic'; import { Wrapper } from '../wrappers'; export interface Key<T> extends Symbol { } export declare function provide(data: AnyObject): void; export declare function provide<T>(key: Key<T>, value: T | Wrapper<T>): void; export declare function inject<T>(key: Key<T>): Wrapper<T> | void;
But the doc says:
▸ provide(key: string | symbol, value: any)
▸ inject(key: string | symbol)
Equivalent with provide and inject from 2.x
So when I use string instead of exporting and importing symbols accross file, I got type error.
The text was updated successfully, but these errors were encountered:
e86b855
No branches or pull requests
Here is the declaration file:
But the doc says:
provide, inject
▸ provide(key: string | symbol, value: any)
▸ inject(key: string | symbol)
Equivalent with provide and inject from 2.x
So when I use string instead of exporting and importing symbols accross file, I got type error.
The text was updated successfully, but these errors were encountered: