Repository URL to install this package:
|
Version:
3.0.2 ▾
|
@skava/state
/
globals.d.ts
|
|---|
/**
* @see https://basarat.gitbooks.io/typescript/docs/project/globals.html
* @see https://www.typescriptlang.org/docs/handbook/declaration-files/templates/global-d-ts.html
* @see https://definitelytyped.org/guides/best-practices.html
* @see https://stackoverflow.com/questions/41717006/node-js-global-variable-and-typescript
*/
import { ApplicationTypes } from './src/typings'
import OneUrl from './globals.node'
declare global {
const oneUrl = OneUrl
interface Document {
documentMode?: string
}
interface Window {
application: ApplicationTypes
// @note better to define like above
// document: Document & {}
}
}