Entity / foldkit-entity
WriteIncrements
type · packages/entity/src/write.ts:214
type WriteIncrements<
E extends AnyEntity,
Fields extends Schema.Struct.Fields,
> = {
readonly [
K in NumberKeys<{
[F in keyof E['fields']]: E['fields'][F]['schema']
}>
]?: NumberKeys<Fields>
}An update's increments (or decrements): a number field of the Entity, by the input key holding the amount.