Skip to content

Type Alias: CreateInput<S>

CreateInput<S> = { [K in RequiredCreateKeys<S>]-?: FieldType<S[K]> } & { [K in Exclude<keyof S, RequiredCreateKeys<S>>]?: FieldType<S[K]> }

Defined in: src/schema/field-types.ts:120

Input accepted by create(): required-without-default keys are mandatory, the rest optional.

Type Parameters

S

S extends SchemaDef

Released under the MIT License.