refactor(core): remove duplicate InjectableType declaration (#34679)

This duplication causes a compilation error with TypeScript 3.7

PR Close #34679
This commit is contained in:
Igor Minar 2020-01-08 11:42:31 -08:00 committed by atscott
parent 9c5510b28e
commit 25eaff447a
2 changed files with 1 additions and 8 deletions

View File

@ -86,12 +86,6 @@ export const Injectable: InjectableDecorator = makeDecorator(
'Injectable', undefined, undefined, undefined, 'Injectable', undefined, undefined, undefined,
(type: Type<any>, meta: Injectable) => SWITCH_COMPILE_INJECTABLE(type as any, meta)); (type: Type<any>, meta: Injectable) => SWITCH_COMPILE_INJECTABLE(type as any, meta));
/**
* Type representing injectable service.
*
* @publicApi
*/
export interface InjectableType<T> extends Type<T> { ɵprov: ɵɵInjectableDef<T>; }
/** /**
* Supports @Injectable() in JIT mode for Render2. * Supports @Injectable() in JIT mode for Render2.

View File

@ -8,8 +8,7 @@
import {DebugElement__PRE_R3__, DebugEventListener, DebugNode__PRE_R3__, getDebugNode, indexDebugNode, removeDebugNodeFromIndex} from '../debug/debug_node'; import {DebugElement__PRE_R3__, DebugEventListener, DebugNode__PRE_R3__, getDebugNode, indexDebugNode, removeDebugNodeFromIndex} from '../debug/debug_node';
import {Injector} from '../di'; import {Injector} from '../di';
import {InjectableType} from '../di/injectable'; import {InjectableType, getInjectableDef, ɵɵInjectableDef} from '../di/interface/defs';
import {getInjectableDef, ɵɵInjectableDef} from '../di/interface/defs';
import {ErrorHandler} from '../error_handler'; import {ErrorHandler} from '../error_handler';
import {Type} from '../interface/type'; import {Type} from '../interface/type';
import {ComponentFactory} from '../linker/component_factory'; import {ComponentFactory} from '../linker/component_factory';