@nosto/nosto-js

    Type Alias MockMember<T>

    MockMember: T extends (...args: never[]) => unknown
        ? (...args: Parameters<T>) => Partial<ReturnType<T>>
        : T extends object ? { [K in keyof T]?: Partial<T[K]> } : T

    MockMember turns API members into functions returning partials or in case of objects partial objects.

    Type Parameters

    • T
    MMNEPVFCICPMFPCPTTAAATR