Skip to content

Commit

Permalink
fix: import BodyReadable and Dispatcher correctly (nodejs#1424)
Browse files Browse the repository at this point in the history
* fix: import `BodyReadable` correctly

* fix: import `Dispatcher` correctly

* chore: fix `BodyReadable`'s import
  • Loading branch information
RA80533 authored and metcoder95 committed Dec 26, 2022
1 parent 31c473c commit 895379f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion test/types/readable.test-d.ts
@@ -1,5 +1,5 @@
import { expectAssignable } from 'tsd'
import BodyReadable from '../../types/readable'
import BodyReadable = require('../../types/readable')
import { Blob } from 'buffer'

expectAssignable<BodyReadable>(new BodyReadable())
Expand Down
2 changes: 1 addition & 1 deletion types/dispatcher.d.ts
Expand Up @@ -3,7 +3,7 @@ import { Duplex, Readable, Writable } from 'stream'
import { EventEmitter } from 'events'
import { IncomingHttpHeaders } from 'http'
import { Blob } from 'buffer'
import BodyReadable from './readable'
import BodyReadable = require('./readable')
import { FormData } from './formdata'

type AbortSignal = unknown;
Expand Down
2 changes: 1 addition & 1 deletion types/mock-interceptor.d.ts
@@ -1,5 +1,5 @@
import { IncomingHttpHeaders } from 'http'
import Dispatcher from './dispatcher';
import Dispatcher = require('./dispatcher');
import { BodyInit, Headers } from './fetch'

export {
Expand Down

0 comments on commit 895379f

Please sign in to comment.