File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
packages/server/create-request/src Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -12,18 +12,18 @@ export type BFFRequestPayload = {
12
12
files ?: Record < string , any > ;
13
13
} ;
14
14
15
- // Narrowed cross-env request typings to avoid DOM/undici Request conflicts
16
- export type FetchInput = string | URL ;
15
+ // Browser-aligned typings so native fetch is assignable
16
+ export type FetchInput = RequestInfo | URL ;
17
17
18
18
export interface RequestInitLike {
19
19
method ?: string ;
20
- headers ?: Record < string , any > | [ string , string ] [ ] | Headers ;
21
- body ?: unknown ;
20
+ headers ?: HeadersInit ;
21
+ body ?: BodyInit | null | undefined ;
22
22
}
23
23
24
24
export type FetchLike = (
25
25
input : FetchInput ,
26
- init ?: RequestInitLike ,
26
+ init ?: RequestInit | RequestInitLike ,
27
27
) => Promise < any > ;
28
28
29
29
export type Sender < F = FetchLike > = ( ( ...args : any [ ] ) => Promise < any > ) & {
You can’t perform that action at this time.
0 commit comments