Skip to content

Commit

Permalink
Remove not required type imports
Browse files Browse the repository at this point in the history
  • Loading branch information
javivelasco committed Jul 21, 2022
1 parent 912fece commit 4f2a5f2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions packages/next/server/body-streams.ts
@@ -1,9 +1,8 @@
import type { EdgeRuntime } from 'next/dist/compiled/edge-runtime'
import type { IncomingMessage } from 'http'
import { PassThrough, Readable } from 'stream'

export function requestToBodyStream(
context: EdgeRuntime['context'],
context: { ReadableStream: typeof ReadableStream },
stream: Readable
) {
return new context.ReadableStream({
Expand Down
3 changes: 1 addition & 2 deletions packages/next/server/web/sandbox/fetch-inline-assets.ts
@@ -1,5 +1,4 @@
import type { EdgeFunctionDefinition } from '../../../build/webpack/plugins/middleware-plugin'
import type { EdgeRuntime } from 'next/dist/compiled/edge-runtime'
import { createReadStream, promises as fs } from 'fs'
import { requestToBodyStream } from '../../body-streams'
import { resolve } from 'path'
Expand All @@ -13,7 +12,7 @@ export async function fetchInlineAsset(options: {
input: RequestInfo | URL
distDir: string
assets: EdgeFunctionDefinition['assets']
context: EdgeRuntime['context']
context: { Response: typeof Response; ReadableStream: typeof ReadableStream }
}): Promise<Response | undefined> {
const inputString = String(options.input)
if (!inputString.startsWith('blob:')) {
Expand Down

0 comments on commit 4f2a5f2

Please sign in to comment.