fixup! fix(core): More precise return type for InjectableDecorator

This commit is contained in:
Miško Hevery 2018-12-04 14:08:34 -08:00
parent 170ad11718
commit 9133935b74

View File

@ -382,10 +382,10 @@ export interface Injectable {
export declare const Injectable: InjectableDecorator; export declare const Injectable: InjectableDecorator;
export interface InjectableDecorator { export interface InjectableDecorator {
(): any; (): TypeDecorator;
(options?: { (options?: {
providedIn: Type<any> | 'root' | null; providedIn: Type<any> | 'root' | null;
} & InjectableProvider): any; } & InjectableProvider): TypeDecorator;
new (): Injectable; new (): Injectable;
new (options?: { new (options?: {
providedIn: Type<any> | 'root' | null; providedIn: Type<any> | 'root' | null;