• Returns null if the target does not match the type (instanceof). Otherwise returns the target as the type.

    Returns

    Type Parameters

    • T

    Parameters

    • instance: object
    • type: (new (...params: any[]) => T)
        • new (...params: any[]): T
        • Parameters

          • Rest ...params: any[]

          Returns T

    Returns T | null

Generated using TypeDoc