MCPcopy Index your code
hub / github.com/TanStack/form / createFieldMap

Function createFieldMap

packages/form-core/src/utils.ts:537–545  ·  view source on GitHub ↗
(values: Readonly<T>)

Source from the content-addressed store, hash-verified

535}
536
537export function createFieldMap<T>(values: Readonly<T>): { [K in keyof T]: K } {
538 const output: { [K in keyof T]: K } = {} as any
539
540 for (const key in values) {
541 output[key] = key
542 }
543
544 return output
545}
546
547/**
548 * Merge the first parameter with the given overrides.

Callers 1

utils.spec.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected