From 7565d42cc21bfa2dfb29ccccaf37d3a62ed3a4f8 Mon Sep 17 00:00:00 2001 From: ahabhgk Date: Fri, 24 Nov 2023 14:46:42 +0800 Subject: [PATCH] fix --- crates/node_binding/binding.d.ts | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/crates/node_binding/binding.d.ts b/crates/node_binding/binding.d.ts index 31ed09f1398..b04e9c055e8 100644 --- a/crates/node_binding/binding.d.ts +++ b/crates/node_binding/binding.d.ts @@ -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 @@ -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 +export interface ThreadsafeNodeFS { + writeFile: (...args: any[]) => any + removeFile: (...args: any[]) => any + mkdir: (...args: any[]) => any + mkdirp: (...args: any[]) => any + removeDirAll: (...args: any[]) => any +} +