Skip to content
@ng-doc/core / Type alias

InputType

The value an input K of T accepts. For a signal input (input(), a required input or model()) this is the type it is set with, before its transform (for example unknown for an input with numberAttribute); for a decorator input it is the property type. An optional signal input of an interface, such as a field of a type control, resolves the same way.

Generic types
TK
DeclarationTypeScript
type InputType =
  NonNullable<T[K]> extends InputSignalWithTransform<any, infer TWrite> ? TWrite : T[K];
Symbol
Kind
Type alias
Generic types
TK
Scope
@ng-doc/core
Edit this page