Type alias InternalInferAttributeKeysFromFields<M, Key, Options>Private

InternalInferAttributeKeysFromFields<M, Key, Options>: Key extends keyof Model ? never : M[Key] extends AnyFunction ? never : IsBranded<M[Key], typeof NonAttributeBrand> extends true ? never : Options["omit"] extends string ? Key extends Options["omit"] ? never : Key : Key

Internal type used by InferCreationAttributes and InferAttributes to exclude attributes that are:

  • functions
  • branded using NonAttribute
  • inherited from Model
  • Excluded manually using InferAttributesOptions#omit

Type Parameters

Generated using TypeDoc