ObjectAccessor

Type Alias: ObjectAccessor<TParent, TKey>

ts
type ObjectAccessor<TParent, TKey> = TParent["key"] extends never ? `${TKey}` : `${TParent["key"]}.${TKey}`;
type ObjectAccessor<TParent, TKey> = TParent["key"] extends never ? `${TKey}` : `${TParent["key"]}.${TKey}`;

Defined in: packages/form-core/src/util-types.ts:81

Type Parameters

TParent extends AnyDeepKeyAndValue

TKey extends string | number

Subscribe to Bytes

Your weekly dose of JavaScript news. Delivered every Monday to over 100,000 devs, for free.

Bytes

No spam. Unsubscribe at any time.