• 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

    • T

    Parameters

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

          • t: unknown

          Returns t is T

    Returns T

Generated using TypeDoc