Skip to content

Commit d779cee

Browse files
easyCZona-agent
andcommitted
Fix RequestInfo type conflict between errors resource and fetch API
Rename the RequestInfo import from errors resource to ErrorRequestInfo to avoid shadowing the global RequestInfo type needed by fetchWithTimeout method. Co-authored-by: Ona <[email protected]>
1 parent 2eb8db9 commit d779cee

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

‎src/client.ts‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
22

3-
importtype{RequestInit,BodyInit}from'./internal/builtin-types';
3+
importtype{RequestInit,RequestInfo,BodyInit}from'./internal/builtin-types';
44
importtype{HTTPMethod,PromiseOrValue,MergedRequestInit,FinalizedRequestInit}from'./internal/types';
55
import{uuid4}from'./internal/utils/uuid';
66
import{validatePositiveInteger,isAbsoluteURL,safeJSON}from'./internal/utils/values';
@@ -159,7 +159,7 @@ import{
159159
ErrorsasErrorsAPIErrors,
160160
ExceptionInfo,
161161
ExceptionMechanism,
162-
RequestInfo,
162+
RequestInfoasErrorRequestInfo,
163163
StackFrame,
164164
}from'./resources/errors';
165165
import{
@@ -1352,7 +1352,7 @@ export declare namespace Gitpod{
13521352
typeErrorLevelasErrorLevel,
13531353
typeExceptionInfoasExceptionInfo,
13541354
typeExceptionMechanismasExceptionMechanism,
1355-
typeRequestInfoasRequestInfo,
1355+
typeErrorRequestInfoasRequestInfo,
13561356
typeStackFrameasStackFrame,
13571357
typeErrorReportErrorsResponseasErrorReportErrorsResponse,
13581358
typeErrorReportErrorsParamsasErrorReportErrorsParams,

0 commit comments

Comments
(0)