UNPKG

static-injector

Version:

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

17 lines (16 loc) 600 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 */ /** * Asserts that the current stack frame is not within a reactive context. Useful * to disallow certain code from running inside a reactive context (see {@link toSignal}). * * @param debugFn a reference to the function making the assertion (used for the error message). * * @publicApi */ export declare function assertNotInReactiveContext(debugFn: Function, extraContext?: string): void;