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 <no-reply@ona.com>
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-
import type { RequestInit, BodyInit } from './internal/builtin-types';
3+
import type { RequestInit, RequestInfo, BodyInit } from './internal/builtin-types';
44
import type { 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
Errors as ErrorsAPIErrors,
160160
ExceptionInfo,
161161
ExceptionMechanism,
162-
RequestInfo,
162+
RequestInfo as ErrorRequestInfo,
163163
StackFrame,
164164
} from './resources/errors';
165165
import {
@@ -1352,7 +1352,7 @@ export declare namespace Gitpod {
13521352
type ErrorLevel as ErrorLevel,
13531353
type ExceptionInfo as ExceptionInfo,
13541354
type ExceptionMechanism as ExceptionMechanism,
1355-
type RequestInfo as RequestInfo,
1355+
type ErrorRequestInfo as RequestInfo,
13561356
type StackFrame as StackFrame,
13571357
type ErrorReportErrorsResponse as ErrorReportErrorsResponse,
13581358
type ErrorReportErrorsParams as ErrorReportErrorsParams,

0 commit comments

Comments
 (0)