2019-12-19 15:25:42 -05:00
|
|
|
export declare function applyChanges(component: {}): void;
|
2018-11-08 12:25:33 -05:00
|
|
|
|
2021-04-05 23:01:42 -04:00
|
|
|
export interface ComponentDebugMetadata extends DirectiveDebugMetadata {
|
|
|
|
changeDetection: ChangeDetectionStrategy;
|
|
|
|
encapsulation: ViewEncapsulation;
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface DirectiveDebugMetadata {
|
|
|
|
inputs: Record<string, string>;
|
|
|
|
outputs: Record<string, string>;
|
|
|
|
}
|
|
|
|
|
2019-12-19 15:25:42 -05:00
|
|
|
export declare function getComponent<T>(element: Element): T | null;
|
2018-11-28 18:54:38 -05:00
|
|
|
|
2019-12-19 15:25:42 -05:00
|
|
|
export declare function getContext<T>(element: Element): T | null;
|
2019-09-17 14:19:12 -04:00
|
|
|
|
2021-04-05 23:01:42 -04:00
|
|
|
export declare function getDirectiveMetadata(directiveOrComponentInstance: any): ComponentDebugMetadata | DirectiveDebugMetadata | null;
|
|
|
|
|
|
|
|
export declare function getDirectives(node: Node): {}[];
|
2018-11-08 12:25:33 -05:00
|
|
|
|
2019-12-19 15:25:42 -05:00
|
|
|
export declare function getHostElement(componentOrDirective: {}): Element;
|
2018-11-08 12:25:33 -05:00
|
|
|
|
2019-12-19 15:25:42 -05:00
|
|
|
export declare function getInjector(elementOrDir: Element | {}): Injector;
|
2018-11-08 12:25:33 -05:00
|
|
|
|
2018-11-28 18:54:38 -05:00
|
|
|
export declare function getListeners(element: Element): Listener[];
|
|
|
|
|
2019-12-19 15:25:42 -05:00
|
|
|
export declare function getOwningComponent<T>(elementOrDir: Element | {}): T | null;
|
2018-11-15 11:43:56 -05:00
|
|
|
|
2019-12-19 15:25:42 -05:00
|
|
|
export declare function getRootComponents(elementOrDir: Element | {}): {}[];
|
2018-11-15 11:43:56 -05:00
|
|
|
|
2019-12-19 15:25:42 -05:00
|
|
|
export interface Listener {
|
|
|
|
callback: (value: any) => any;
|
|
|
|
element: Element;
|
|
|
|
name: string;
|
|
|
|
type: 'dom' | 'output';
|
|
|
|
useCapture: boolean;
|
|
|
|
}
|