Skip to main content

toType

Callable


  • Convert an input to a specified type. Input of null/undefined returns null/undefined regardless of the output type.


    Type parameters

    Parameters

    • input: null

      value to convert

    • outputType: T

      type to output

    Returns null