Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ahabhgk committed Nov 24, 2023
1 parent 99540e1 commit 7565d42
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions crates/node_binding/binding.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -491,6 +491,13 @@ export interface JsStatsWarning {
formatted: string
}

export interface NodeFS {
writeFile: (...args: any[]) => any
removeFile: (...args: any[]) => any
mkdir: (...args: any[]) => any
mkdirp: (...args: any[]) => any
}

export interface PathData {
filename?: string
hash?: string
Expand Down Expand Up @@ -1138,3 +1145,11 @@ export function registerGlobalTrace(filter: string, layer: "chrome" | "logger",
/** Builtin loader runner */
export function runBuiltinLoader(builtin: string, options: string | undefined | null, loaderContext: JsLoaderContext): Promise<JsLoaderContext>

export interface ThreadsafeNodeFS {
writeFile: (...args: any[]) => any
removeFile: (...args: any[]) => any
mkdir: (...args: any[]) => any
mkdirp: (...args: any[]) => any
removeDirAll: (...args: any[]) => any
}

0 comments on commit 7565d42

Please sign in to comment.