Skip to content

Commit bcb437c

Browse files
committed
fix: fix type errors
1 parent 815c86a commit bcb437c

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

packages/fetch/src/lib.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
// On the web we just export native fetch implementation
2-
export { FormData, File } from './package.js';
2+
export { FormData } from './package.js';
33
export const { Headers, Request, Response } = globalThis;
44
export default globalThis.fetch.bind(globalThis)

packages/fetch/src/lib.node.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
export { default, fetch, Headers, Request, Response } from "./fetch.js";
22

3-
export { FormData, File } from './package.js';
4-
// Node 18+ introduces fetch API globally and it doesn't support our use-cases yet.
5-
// For now we always use the polyfill.
3+
export { FormData } from './package.js';
4+
// Node 18+ introduces fetch API globally, and it doesn't support our use-cases yet.
5+
// For now, we always use the polyfill.

packages/fetch/src/utils/form-data.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import {randomBytes} from 'crypto';
22
import { iterateMultipart } from '@web3-storage/multipart-parser';
3-
import { FormData, File } from '../package.js';
3+
import { FormData } from '../package.js';
44
import { isBlob } from './is.js';
55

66
const carriage = '\r\n';

0 commit comments

Comments
 (0)