MCPcopy
hub / github.com/freshframework/fresh / isComputedSignal

Function isComputedSignal

packages/fresh/src/runtime/server/preact_hooks.ts:598–602  ·  view source on GitHub ↗
(x: any)

Source from the content-addressed store, hash-verified

596
597// deno-lint-ignore no-explicit-any
598function isComputedSignal(x: any): x is ReadonlySignal {
599 return isSignal(x) &&
600 (("x" in x && typeof x.x === "function") ||
601 "_fn" in x && typeof x._fn === "function");
602}
603
604// deno-lint-ignore no-explicit-any
605function isVNode(x: any): x is VNode {

Callers 1

preact_hooks.tsFile · 0.85

Calls 1

isSignalFunction · 0.85

Tested by

no test coverage detected