File tree 2 files changed +1
-3
lines changed
midway-component-fetch/src/lib
2 files changed +1
-3
lines changed Original file line number Diff line number Diff line change @@ -313,7 +313,7 @@ export function processRequestPostLikeData(args: Args): RequestInit['body'] | nu
313
313
// throw new TypeError('NodeFormData from pkg "form-data" not supported, use FormData from "undici" instead')
314
314
// }
315
315
else if (typeof Blob !== 'undefined' && data instanceof Blob) {
316
- // @ts-expect-error
316
+ // @ts-ignore
317
317
body = data
318
318
}
319
319
else if (typeof ArrayBuffer !== 'undefined' && data instanceof ArrayBuffer) {
Original file line number Diff line number Diff line change @@ -157,7 +157,6 @@ export function genAttrsWhileError(options: ProcessExCallbackOptions): Decorator
157
157
}
158
158
if (Array.isArray(captureResponseHeaders)) {
159
159
captureResponseHeaders.forEach((name) => {
160
- // @ts-expect-error for undici types
161
160
const val = retrieveHeadersItem(opts.headers, name)
162
161
if (val) {
163
162
events[`http.${name}`] = val
@@ -194,7 +193,6 @@ export function genOutgoingRequestAttributes(options: ReqCallbackOptions): Attri
194
193
195
194
if (Array.isArray(captureRequestHeaders)) {
196
195
captureRequestHeaders.forEach((name) => {
197
- // @ts-expect-error for undici types
198
196
const val = retrieveHeadersItem(opts.headers, name)
199
197
if (val) {
200
198
tags[`http.${name}`] = val
You can’t perform that action at this time.
0 commit comments