Skip to content

KeyOf

KeyOf<K> = K extends readonly Ref[] ? { -readonly [I in keyof K]: K[I] extends Ref<string, infer V> ? V : never } : K extends Ref<string, infer V> ? V : never

Defined in: packages/schema/src/resource-types.ts:16

A record’s key from the fields .primaryKey() picked: one value, or a tuple of the parts.

K