Type alias WrapperResult<C>
WrapperResult<C>: (<T, B, Q, P, D>(config1) => IsOptional<Omit<T, "d">, keyof Omit<T, "d">> extends true
? (<Data>(config2?) => Promise<Data>)
: (<Data>(config2) => Promise<Data>))
Type declaration
-
- <T, B, Q, P, D>(config1): IsOptional<Omit<T, "d">, keyof Omit<T, "d">> extends true
? (<Data>(config2?) => Promise<Data>)
: (<Data>(config2) => Promise<Data>)
-
Type Parameters
-
T extends {
b?: Record<any, any>;
d?: any;
p?: Record<any, any>;
q?: Record<any, any>;
} = {
b?: Record<any, any>;
d: any;
p?: Record<any, any>;
q?: Record<any, any>;
}
-
B = IsEqual<T["b"], unknown> extends true
? Record<any, any>
: T["b"]
-
Q = IsEqual<T["q"], unknown> extends true
? Record<any, any>
: T["q"]
-
P = IsEqual<T["p"], unknown> extends true
? Record<any, any>
: T["p"]
-
D = IsEqual<T["d"], unknown> extends true
? any
: T["d"]
Parameters
-
config1: Context<C, B, Q, P, D> & DeepPartial<Omit<T, "d">> | string
Returns IsOptional<Omit<T, "d">, keyof Omit<T, "d">> extends true
? (<Data>(config2?) => Promise<Data>)
: (<Data>(config2) => Promise<Data>)