Skip to content

Type Alias: DataValues<T, PK>

ts
type DataValues<T, PK> = Pick<T, Exclude<NonMethodKeys<T>, PK>>;

The shape of the non-primary key properties for a model.

Type Parameters

Type Parameter
T extends PlainObject
PK extends keyof T