-
Notifications
You must be signed in to change notification settings - Fork 341
Closed
Description
Declaration file in this lib:
export interface InjectionKey<T> extends Symbol {
}
export declare function provide<T>(key: InjectionKey<T> | string, value: T): void;
export declare function inject<T>(key: InjectionKey<T> | string, defaultValue: T): T;Docs:
- Typing
interface InjectionKey<T> extends Symbol {}
function provide<T>(key: InjectionKey<T> | string, value: T): void
// without default value
function inject<T>(key: InjectionKey<T> | string): T | undefined
// with default value
function inject<T>(key: InjectionKey<T> | string, defaultValue: T): TMetadata
Metadata
Assignees
Labels
No labels