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