fix(ivy): providers should not be inherited (#27013)

PR Close #27013
This commit is contained in:
Kara Erickson
2018-11-08 11:26:28 -08:00
committed by Andrew Kushnir
parent 83c9bff242
commit 2f36a9591d
9 changed files with 146 additions and 35 deletions

View File

@ -307,8 +307,16 @@ export interface PipeDef<T> {
export type PipeDefWithMeta<T, Name extends string> = PipeDef<T>;
export type DirectiveDefFeature = <T>(directiveDef: DirectiveDef<T>) => void;
export type ComponentDefFeature = <T>(componentDef: ComponentDef<T>) => void;
export interface DirectiveDefFeature {
<T>(directiveDef: DirectiveDef<T>): void;
ngInherit?: true;
}
export interface ComponentDefFeature {
<T>(componentDef: ComponentDef<T>): void;
ngInherit?: true;
}
/**
* Type used for directiveDefs on component definition.