fix(ivy): align discovery methods for consistency (#27117)

PR Close #27117
This commit is contained in:
Misko Hevery
2018-11-15 08:43:56 -08:00
parent ca40565f9a
commit e56c8bf8d1
21 changed files with 433 additions and 217 deletions

View File

@ -1,11 +1,15 @@
export declare function getComponent<T = {}>(target: {}): T | null;
export declare function getComponent<T = {}>(element: Element): T | null;
export declare function getDirectives(target: {}): Array<{}>;
export declare function getHostComponent<T = {}>(target: {}): T | null;
export declare function getHostElement<T>(directive: T): Element;
export declare function getInjector(target: {}): Injector;
export declare function getPlayers(ref: ComponentInstance | DirectiveInstance | HTMLElement): Player[];
export declare function getRootComponents(target: {}): any[];
export declare function getViewComponent<T = {}>(element: Element | {}): T | null;
export declare function markDirty<T>(component: T): void;