Skip to content

Commit

Permalink
fix: correct req type order
Browse files Browse the repository at this point in the history
  • Loading branch information
agerard-godaddy committed Nov 27, 2024
1 parent 5d3cc04 commit 38684f7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/gasket-request/lib/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ export class WeakPromiseKeeper<Key extends WeakKey = WeakKey, Value = any> {
*/
export async function makeGasketRequest(req: RequestLike): Promise<GasketRequest>;

type RequestActionFn<Result, Args extends Array<unknown>> = (gasket: Gasket, req: RequestLike, ...args: Args) => Promise<Result>;
type RequestActionWrapperFn<Result, Args extends Array<unknown>> = (gasket: Gasket, req: GasketRequest, ...args: Args) => Promise<Result>;
type RequestActionFn<Result, Args extends Array<unknown>> = (gasket: Gasket, req: GasketRequest, ...args: Args) => Promise<Result>;
type RequestActionWrapperFn<Result, Args extends Array<unknown>> = (gasket: Gasket, req: RequestLike, ...args: Args) => Promise<Result>;

export function withGasketRequest<Result, Args extends Array<unknown>>(actionFn: RequestActionFn<Result, Args>): RequestActionWrapperFn<Result, Args>;
export function withGasketRequestCache<Result, Args extends Array<unknown>>(actionFn: RequestActionFn<Result, Args>): RequestActionWrapperFn<Result, Args>;

0 comments on commit 38684f7

Please sign in to comment.