Type Alias Anemic<Type, OmittedKeys>

Anemic<Type, OmittedKeys>: Omit<{
    [Key in keyof OmitFunctions<Type>]: Type[Key]
}, OmittedKeys>

Converts a generic type into an anemic type by excluding any methods. Useful for object/class initializers or data-centric operations.

Type Parameters

  • Type
  • OmittedKeys extends keyof Type = never