MCPcopy Create free account
hub / github.com/effector/effector / getDefaultEnv

Function getDefaultEnv

src/forest/method/using.ts:20–25  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

18import {mountFn} from '../mountFn'
19
20function getDefaultEnv(): {
21 document: Document
22} {
23 if (typeof document !== 'undefined') return {document}
24 throw Error('your environment has no document')
25}
26export function using(node: DOMElement, cb: () => any): void
27export function using(
28 node: DOMElement,

Callers 1

usingFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…