postgrelize / InferCreationAttributes
Type Alias: InferCreationAttributes<M, Options> ​
InferCreationAttributes<
M,Options> = { [K in keyof M as AttributeKey<M, K, Options["omit"]>]: IsBranded<M[K], typeof CreationAttributeBrand> extends true ? M[K] | undefined : M[K] }
Defined in: src/model/types.ts:120
Infers creation attribute types; CreationOptional attributes may be undefined (Sequelize v6 InferCreationAttributes).
Type Parameters ​
M ​
M
Options ​
Options extends InferAttributesOptions<keyof M | never> = InferAttributesOptions<never>