Skip to content

Commit 6855006

Browse files
authored
fix: import BodyReadable and Dispatcher correctly (nodejs#1424)
* fix: import `BodyReadable` correctly * fix: import `Dispatcher` correctly * chore: fix `BodyReadable`'s import
1 parent 90d7821 commit 6855006

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

test/types/readable.test-d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { expectAssignable } from 'tsd'
2-
import BodyReadable from '../../types/readable'
2+
import BodyReadable = require('../../types/readable')
33
import { Blob } from 'buffer'
44

55
expectAssignable<BodyReadable>(new BodyReadable())

types/dispatcher.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { Duplex, Readable, Writable } from 'stream'
33
import { EventEmitter } from 'events'
44
import { IncomingHttpHeaders } from 'http'
55
import { Blob } from 'buffer'
6-
import BodyReadable from './readable'
6+
import BodyReadable = require('./readable')
77
import { FormData } from './formdata'
88

99
type AbortSignal = unknown;

types/mock-interceptor.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { IncomingHttpHeaders } from 'http'
2-
import Dispatcher from './dispatcher';
2+
import Dispatcher = require('./dispatcher');
33
import { BodyInit, Headers } from './fetch'
44

55
export {

0 commit comments

Comments
 (0)