Skip to content

Instantly share code, notes, and snippets.

@alexzuza
Last active March 20, 2018 18:47
Show Gist options
  • Save alexzuza/8585c97e32e6d124df88f9d7fb6c69b7 to your computer and use it in GitHub Desktop.
Save alexzuza/8585c97e32e6d124df88f9d7fb6c69b7 to your computer and use it in GitHub Desktop.
DI Injectable new API
export interface InjectableDecorator {
(): any;
(options?: {providedIn: Type<any>| 'root' | null}&InjectableProvider): any;
new (): Injectable;
new (options?: {providedIn: Type<any>| 'root' | null}&InjectableProvider): Injectable;
}
export type InjectableProvider = ValueSansProvider | ExistingSansProvider |
StaticClassSansProvider | ConstructorSansProvider | FactorySansProvider | ClassSansProvider;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment