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

Function safeParseInsertTodo

examples/react/todo/src/db/validation.ts:64–66  ·  view source on GitHub ↗
(data: unknown)

Source from the content-addressed store, hash-verified

62
63// Safe parsing functions that return Result type instead of throwing
64export const safeParseInsertTodo = (data: unknown) => {
65 return insertTodoSchema.safeParse(data)
66}
67
68export const safeParseSelectTodo = (data: unknown) => {
69 return selectTodoSchema.safeParse(data)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected