MCPcopy
hub / github.com/cloudflare/capnweb / isWrappedMethod

Function isWrappedMethod

packages/capnweb-validate/src/internal/core.ts:1316–1321  ·  view source on GitHub ↗
(fn: unknown)

Source from the content-addressed store, hash-verified

1314const WRAPPED_METHOD = Symbol.for("capnweb-validate.wrappedMethod");
1315
1316export function isWrappedMethod(fn: unknown): boolean {
1317 return (
1318 typeof fn === "function" &&
1319 (fn as unknown as Record<PropertyKey, unknown>)[WRAPPED_METHOD] === true
1320 );
1321}
1322
1323function markWrapped<F extends (...args: never[]) => unknown>(
1324 fn: F,

Callers 3

getFunction · 0.85
wrapPrototypeMethodsFunction · 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…