Skip to content

Commit

Permalink
chore(client): export RequestOptionsData type
Browse files Browse the repository at this point in the history
Made the `RequestOptionsData` type in the `request.ts` file exportable to allow for wider reuse across the application. This change facilitates type safety and consistency in different modules that might need to construct request options.
  • Loading branch information
shorwood committed Sep 11, 2024
1 parent 51d21d2 commit 706a1c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/client/request.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { resolveRequestInit } from './resolveRequestInit'
import { InferInput, InferOutput, InferRouteName } from './types'

/** Type-safe options to pass to the client request based on the route. */
type RequestOptionsData<T extends ApplicationOrModule = never, P extends InferRouteName<T> = never> =
export type RequestOptionsData<T extends ApplicationOrModule = never, P extends InferRouteName<T> = never> =
IsNever<T> extends true
? Record<string, unknown>
: InferInput<T, P>
Expand Down

0 comments on commit 706a1c3

Please sign in to comment.