RecursivePartialTestable | WebHare Platform SDK
WebHare Platform SDK
    Preparing search index...

    Type Alias RecursivePartialTestable<T>

    RecursivePartialTestable:
        | (
            T extends (infer U)[]
                ? ReadonlyArray<RecursivePartialTestable<U>>
                : T extends string
                    ? T
                    | `${T}`
                    | RegExp
                    : T extends PrimitiveType
                        ? T
                        : T extends object
                            ? { readonly [K in keyof T]?: RecursivePartialTestable<T[K]> }
                            : T
        )
        | TestFunction<T>

    Recursively apply Partial<> on records in a type but also allow Regexps and Functions to match strings. Also allow the string values for string enums.

    Type Parameters

    • T

      Type to convert