UNPKG

static-injector

Version:

Angular 依赖注入独立版本;Angular dependency injection standalone version

13 lines (12 loc) 588 B
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import type { ProviderToken } from '../di'; /** Called when directives inject each other (creating a circular dependency) */ export declare function throwCyclicDependencyError(token: string, path?: string[]): never; /** Throws an error when a token is not found in DI. */ export declare function throwProviderNotFoundError(token: ProviderToken<unknown>, injectorName?: string): never;