Type Alias NotAcceptedFields<TSchema, FieldType>

NotAcceptedFields<TSchema, FieldType>: {
    readonly [key in KeysOfOtherType<TSchema, FieldType>]?: never
}

It avoids using fields with not acceptable types

Type Parameters

  • TSchema
  • FieldType