UNPKG

@krai-tech/web-api

Version:

A set of common tokens for consuming Web API with Angular.

12 lines (11 loc) 459 B
import { InjectionToken } from '@angular/core'; /** * Injection token for the global window object. * * This token provides an abstraction over the global window object, allowing it to be injected * into Angular services or components. It uses the Angular DOCUMENT token to access the defaultView, * which represents the window object. * * Throws an error if the window object is not available. */ export declare const WINDOW: InjectionToken<Window>;