# KeyTuplePart

> **KeyTuplePart** = `{ readonly [K in KeyTuplePartKind]: { kind: K; value: KeyTuplePartValueByKind[K]; direction?: KeyDirection } }`\[[`KeyTuplePartKind`](/reference/knotkit/key-encoding/type-aliases/keytuplepartkind/)]

Defined in: [packages/key-encoding/src/tuple.ts:55](https://github.com/jkomyno/knotkit/blob/ef04dc6fd5182dca281abddf3e1dcb13118c15a4/packages/key-encoding/src/tuple.ts#L55)

One element of a composite key: a value, the domain it belongs to, and the direction it sorts in, `'ascending'` when omitted. Narrowing on `kind` narrows `value`.
