@kaynooo/utils
    Preparing search index...

    Type Alias EndpointArgs<EndpointsConst, T, CustomTypes>

    EndpointArgs: HasKeys<
        ResolveParams<
            EndpointsConst[T],
            CustomTypes[T] extends Record<string, any> ? CustomTypes[T] : {},
        >,
    > extends true
        ? [
            T,
            ResolveParams<
                EndpointsConst[T],
                CustomTypes[T] extends Record<string, any> ? CustomTypes[T] : {},
            >,
        ]
        : [T] | [T, undefined]

    Type Parameters

    • EndpointsConst extends Record<Key, string>
    • T extends keyof EndpointsConst
    • CustomTypes extends PartialRecord<keyof EndpointsConst, Record<string, any>> = {}