goldens/public-api/core/primitives/di/index.api.md
Do not edit this file. It is a report generated by API Extractor.
// @public (undocumented)
export function defineInjectable<T>(opts: {
token: unknown;
providedIn?: Type<any> | 'root' | 'platform' | 'any' | 'environment' | null;
factory: () => T;
}): ɵɵInjectableDeclaration<T>;
// @public (undocumented)
export function getCurrentInjector(): Injector | undefined | null;
// @public (undocumented)
export function inject<T>(token: InjectionToken<T> | Constructor<T>): T;
// @public
export interface InjectionToken<T> {
// (undocumented)
ɵprov: ɵɵInjectableDeclaration<T>;
}
// @public (undocumented)
export interface Injector {
// (undocumented)
retrieve<T>(token: InjectionToken<T>, options?: unknown): T | NotFound;
}
// @public
export function isNotFound(e: unknown): e is NotFound;
// @public
export const NOT_FOUND: unique symbol;
// @public
export type NotFound = typeof NOT_FOUND | NotFoundError;
// @public
export class NotFoundError extends Error {
constructor(message: string);
// (undocumented)
readonly name: string;
}
// @public (undocumented)
export function registerInjectable<T>(ctor: unknown, declaration: ɵɵInjectableDeclaration<T>): InjectionToken<T>;
// @public (undocumented)
export function setCurrentInjector(injector: Injector | null | undefined): Injector | undefined | null;
// (No @packageDocumentation comment for this package)