File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ export interface WebBaseLoaderParams extends AsyncCallerParams {
36
36
/**
37
37
* The headers to use in the fetch request.
38
38
*/
39
- headers ?: Headers ;
39
+ headers ?: HeadersInit ;
40
40
}
41
41
42
42
/**
@@ -62,7 +62,7 @@ export class CheerioWebBaseLoader
62
62
63
63
textDecoder ?: TextDecoder ;
64
64
65
- headers ?: Headers ;
65
+ headers ?: HeadersInit ;
66
66
67
67
constructor ( public webPath : string , fields ?: WebBaseLoaderParams ) {
68
68
super ( ) ;
@@ -86,7 +86,7 @@ export class CheerioWebBaseLoader
86
86
timeout : number | undefined ,
87
87
textDecoder ?: TextDecoder ,
88
88
options ?: CheerioOptions & {
89
- headers ?: Headers ;
89
+ headers ?: HeadersInit ;
90
90
}
91
91
) : Promise < CheerioAPI [ ] > {
92
92
return Promise . all (
@@ -102,7 +102,7 @@ export class CheerioWebBaseLoader
102
102
timeout : number | undefined ,
103
103
textDecoder ?: TextDecoder ,
104
104
options ?: CheerioOptions & {
105
- headers ?: Headers ;
105
+ headers ?: HeadersInit ;
106
106
}
107
107
) : Promise < CheerioAPI > {
108
108
const { headers, ...cheerioOptions } = options ?? { } ;
You can’t perform that action at this time.
0 commit comments