static-injector
Version:
Angular 依赖注入独立版本;Angular dependency injection standalone version
19 lines (18 loc) • 597 B
TypeScript
/**
* @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 { InjectionToken } from './di';
/**
* A DI Token representing the main rendering context.
* In a browser and SSR this is the DOM Document.
* When using SSR, that document is created by [Domino](https://github.com/angular/domino).
*
* @see [Accessing Document via DI](guide/ssr#accessing-document-via-di)
*
* @publicApi
*/
export declare const DOCUMENT: InjectionToken<Document>;