UNPKG

@types/browser-or-node

Version:
24 lines (18 loc) 769 B
# Installation > `npm install --save @types/browser-or-node` # Summary This package contains type definitions for browser-or-node (https://github.com/flexdinesh/browser-or-node). # Details Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/browser-or-node. ## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/browser-or-node/index.d.ts) ````ts export const isBrowser: boolean; export const isWebWorker: boolean; export const isNode: boolean; export function isJsDom(): boolean; ```` ### Additional Details * Last updated: Mon, 06 Nov 2023 22:41:05 GMT * Dependencies: none # Credits These definitions were written by [Jussi Kinnula](https://github.com/jussikinnula).