MCPcopy Create free account
hub / github.com/formkit/formkit / createTraps

Function createTraps

packages/core/src/node.ts:1743–1745  ·  view source on GitHub ↗

* These are all the available "traps" for a given node. You can think of these * a little bit like methods, but they are really Proxy interceptors.

()

Source from the content-addressed store, hash-verified

1741 * a little bit like methods, but they are really Proxy interceptors.
1742 */
1743function createTraps(): FormKitTraps {
1744 return new Map<string | symbol, FormKitTrap>(Object.entries(traps))
1745}
1746
1747/**
1748 * Creates a getter/setter trap and curries the context/node pair

Callers 1

createContextFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected