Skip to content

Commit 797d33d

Browse files
committed
feat(tanstack-query-react-types): clarify RequestFnInfo type by adding missing readonly modifiers for consistency and correctness
1 parent 949b8ac commit 797d33d

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

packages/tanstack-query-react-types/src/shared/RequestFn.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ export interface RequestFnInfo
6060
* Base URL to use for the request
6161
* @example 'https://api.example.com'
6262
*/
63-
baseUrl?: string;
63+
readonly baseUrl?: string;
6464

6565
/**
6666
* OpenAPI parameters
@@ -84,10 +84,10 @@ export interface RequestFnInfo
8484
/**
8585
* TanStack Query Meta
8686
*/
87-
meta?: Record<string, unknown>;
87+
readonly meta?: Record<string, unknown>;
8888

8989
/** An AbortSignal to set request's signal. */
90-
signal?: AbortSignal | null;
90+
readonly signal?: AbortSignal | null;
9191
}
9292

9393
/**

0 commit comments

Comments
 (0)