Function formatAs

  • Converts a string into its original type (string, number, boolean).

    Parameters

    • value: string
    • type: string

    Returns string | number | boolean