chore(bindings/node): Fix type definition

- Closes https://github.com/swc-project/swc/issues/9510
This commit is contained in:
강동윤 (Donny) 2024-09-11 11:48:57 +09:00
parent 47ef38dc1d
commit 64ec111769

View File

@ -14,7 +14,8 @@ export type * from "@swc/types";
export { newMangleNameCache as experimental_newMangleNameCache } from "./binding";
import { BundleInput, compileBundleOptions } from "./spack";
import * as assert from "assert";
import type { NapiMinifyExtra } from "../binding";
// @ts-ignore
import type { NapiMinifyExtra } from "./binding";
// Allow overrides to the location of the .node binding file
const bindingsOverride = process.env["SWC_BINARY_PATH"];