• Function that does a JSON.parse() combined with a type check, taking a default value that is returned in case the JSON.parse() was unsuccessful

    Type Parameters

    Type Parameters

    • T

    Parameters

    • input: string
    • defaultValue: T
    • isT: ((t: unknown) => t is T)
        • (t: unknown): t is T
        • Parameters

          • t: unknown

          Returns t is T

    Returns T

Generated using TypeDoc