Metakit / @doeixd/metakit/relation

KeyFields

type · packages/metakit/src/relation.ts:45

type KeyFields<Row> =
  | Path.Fields<Row>[keyof Path.Fields<Row>]
  | readonly [
      Path.Fields<Row>[keyof Path.Fields<Row>],
      ...Path.Fields<Row>[keyof Path.Fields<Row>][],
    ]

A field of Row, or a non-empty tuple of its fields for a composite key.