angular/goldens/public-api/core/global_utils.api.md
Kristiyan Kostadinov 62a97f7e4b fix(core): ensure definitions compile
Includes the following changes to make sure the definitions for injectable compiler:
1. The types for the `factory` function now include the `parent` parameter.
2. `ɵɵFactoryDeclaration` is now defined as a function. We need this since the provider definition gets passed into the inejctable definition by reference.
3. `ɵɵdefineInjectable`, `ɵɵdefineNgModule` and `ɵɵdefinePipe` now return the typed definition, rather than `unknown`. This aligns with what we do for components and directives.

(cherry picked from commit f9ede9ec98)
2026-03-10 16:58:22 +00:00

1.5 KiB

API Report File for "ng_global_utils_api"

Do not edit this file. It is a report generated by API Extractor.


import { ɵɵInjectableDeclaration } from '@angular/core';

// @public
export function applyChanges(component: {}): void;

// @public
export type DirectiveDebugMetadata = AngularDirectiveDebugMetadata | AcxDirectiveDebugMetadata | AngularComponentDebugMetadata | AcxComponentDebugMetadata | WizComponentDebugMetadata;

// @public
export function enableProfiling(): () => void;

// @public
export function getComponent<T>(element: Element): T | null;

// @public
export function getContext<T extends {}>(element: Element): T | null;

// @public
export function getDirectiveMetadata(directiveOrComponentInstance: any): AngularComponentDebugMetadata | AngularDirectiveDebugMetadata | null;

// @public
export function getDirectives(node: Node): {}[];

// @public
export function getHostElement(componentOrDirective: {}): Element;

// @public
export function getInjector(elementOrDir: Element | {}): Injector;

// @public
export function getListeners(element: Element): Listener[];

// @public
export function getOwningComponent<T>(elementOrDir: Element | {}): T | null;

// @public
export function getRootComponents(elementOrDir: Element | {}): {}[];

// @public
export interface Listener {
    callback: (value: any) => any;
    element: Element;
    name: string;
    type: 'dom' | 'output';
    useCapture: boolean;
}

// (No @packageDocumentation comment for this package)