Skip to main content
Version: v10.0.0

IsPartialRow

Whether a partial write carries the key and only row fields of the same types


Import
import { IsPartialRow } from "@hyper-fetch/db"

Preview​

type IsPartialRow<Mapped,Row,KeyField> = [Mapped] extends [Partial<Row> & Required<Pick<Row, KeyField>>] ? [Exclude<keyof Mapped, keyof Row>] extends [never] ? true : false : false;