type alias InputFor

Derive Input type from Row type and Schema

  • Excludes generated columns
  • Makes columns with defaults optional

Type Parameters

Row
Schema extends TableSchema<Row>

Definition

[K in RequiredInputKeys<Row, Schema>]: Row[K] & [K in OptionalInputKeys<Row, Schema>]?: Row[K]

Usage

import { type InputFor } from "doc.ts";