@kaynooo/utils
    Preparing search index...

    Function declareGetEndpoint

    • Type Parameters

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

      Parameters

      Returns {
          <T extends string | number | symbol>(
              args: EndpointArgs<EndpointsConst, T, CustomTypes>,
          ): string;
          <T extends string | number | symbol>(
              endpoint: T,
              ...params: HasKeys<
                  ResolveParams<
                      EndpointsConst[T],
                      CustomTypes[T] extends Record<string, any> ? any[any] : {},
                  >,
              > extends true
                  ? [
                      ResolveParams<
                          EndpointsConst[T],
                          CustomTypes[T] extends Record<string, any> ? any[any] : {},
                      >,
                  ]
                  : [] | [undefined],
          ): string;
      }