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

Function assertClosure

src/forest/assert.ts:5–11  ·  view source on GitHub ↗
(
  currentActor: any,
  methodName: string,
)

Source from the content-addressed store, hash-verified

3}
4
5export function assertClosure(
6 currentActor: any,
7 methodName: string,
8): asserts currentActor {
9 if (!currentActor)
10 throw Error(`${methodName}() called outside from using() closure`)
11}

Callers 8

specFunction · 0.90
listFunction · 0.90
blockFunction · 0.90
nodeFunction · 0.90
hFunction · 0.90
routeFunction · 0.90
recFunction · 0.90
variantFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…