MCPcopy Create free account
hub / github.com/TanStack/form / isGlobalFormValidationError

Function isGlobalFormValidationError

packages/form-core/src/utils.ts:414–418  ·  view source on GitHub ↗
(
  error: unknown,
)

Source from the content-addressed store, hash-verified

412}
413
414export const isGlobalFormValidationError = (
415 error: unknown,
416): error is GlobalFormValidationError<unknown> => {
417 return !!error && typeof error === 'object' && 'fields' in error
418}
419
420export function evaluate<T>(objA: T, objB: T) {
421 if (Object.is(objA, objB)) {

Callers 6

constructorMethod · 0.90
setErrorMapMethod · 0.90
normalizeErrorFunction · 0.90
createServerValidateFunction · 0.90
createServerValidateFunction · 0.90
createServerValidateFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected