MCPcopy Create free account
hub / github.com/TanStack/db / isFuncWithName

Function isFuncWithName

packages/db/tests/cursor.test.ts:23–25  ·  view source on GitHub ↗
(expr: unknown, name: string)

Source from the content-addressed store, hash-verified

21
22// Helper to check if a Func has the expected structure
23function isFuncWithName(expr: unknown, name: string): expr is Func {
24 return expr instanceof Func && expr.name === name
25}
26
27describe(`buildCursor`, () => {
28 describe(`edge cases`, () => {

Callers 1

cursor.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected