Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

types: improve napi binding typing using generated types #69680

Merged
merged 7 commits into from
Sep 24, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
remove unused bindings
  • Loading branch information
ForsakenHarmony committed Sep 20, 2024
commit 68c9a39f0a0e47bd4994d5643e517c2886ccf1a4
5 changes: 0 additions & 5 deletions crates/napi/src/turbopack.rs
Original file line number Diff line number Diff line change
Expand Up @@ -208,8 +208,3 @@ impl From<NapiRouteHas> for RouteHas {
}
}
}

#[napi]
pub async fn experimental_turbo(_unused: Buffer) -> napi::Result<()> {
unimplemented!("__experimental_turbo is not yet implemented");
}
14 changes: 0 additions & 14 deletions packages/next/src/build/swc/generated.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,19 +34,6 @@ export interface TransformOutput {
map?: string
output?: string
}
export function streamEntrypoints(
turboTasks: ExternalObject<TurboTasks>,
rootDir: string,
projectDir: string,
pageExtensions: Array<string>,
func: (...args: any[]) => any
): void
export function getEntrypoints(
turboTasks: ExternalObject<TurboTasks>,
rootDir: string,
projectDir: string,
pageExtensions: Array<string>
): Promise<any>
export function mdxCompile(
value: string,
option: Buffer,
Expand Down Expand Up @@ -359,7 +346,6 @@ export interface NapiRewrite {
has?: Array<NapiRouteHas>
missing?: Array<NapiRouteHas>
}
export function experimentalTurbo(unused: Buffer): Promise<void>
export function createTurboTasks(
memoryLimit?: number | undefined | null
): ExternalObject<TurboTasks>
Expand Down