Skip to content

Commit

Permalink
fix typing
Browse files Browse the repository at this point in the history
  • Loading branch information
huozhi committed Mar 1, 2022
1 parent 94fc4ca commit 748549a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/next/build/entries.ts
Expand Up @@ -105,7 +105,7 @@ type Entrypoints = {

export async function getPageRuntime(
pageFilePath: string,
globalRuntime: string | undefined
globalRuntime?: string
) {
let pageRuntime: string | undefined = undefined
const pageContent = await fs.promises.readFile(pageFilePath, {
Expand Down
4 changes: 2 additions & 2 deletions packages/next/build/swc/index.d.ts
@@ -1,6 +1,6 @@
export function isWasm(): Promise<boolean>
export function transform(src: string, options: any): Promise<string>
export function transformSync(src: string, options: any): string
export function transform(src: string, options?: any): Promise<any>
export function transformSync(src: string, options?: any): any
export function minify(src: string, options: any): Promise<string>
export function minifySync(src: string, options: any): string
export function bundle(options: any): Promise<any>
Expand Down

0 comments on commit 748549a

Please sign in to comment.