From 073d45b6f2861a38144dc18367f1269f0b1c6e87 Mon Sep 17 00:00:00 2001 From: pluris Date: Tue, 30 Jul 2024 08:09:49 +0900 Subject: [PATCH 1/2] typings: add missing binding function `writeFileUtf8()` --- typings/internalBinding/fs.d.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/typings/internalBinding/fs.d.ts b/typings/internalBinding/fs.d.ts index 2d86a412ba686d..1417a16de71918 100644 --- a/typings/internalBinding/fs.d.ts +++ b/typings/internalBinding/fs.d.ts @@ -292,6 +292,7 @@ export interface FsBinding { writeBuffer: typeof InternalFSBinding.writeBuffer; writeBuffers: typeof InternalFSBinding.writeBuffers; writeString: typeof InternalFSBinding.writeString; + writeFileUtf8: typeof InternalFSBinding.writeFileUtf8; getFormatOfExtensionlessFile: typeof InternalFSBinding.getFormatOfExtensionlessFile; } From 18855da5c4ddaeffdecbf5a5dd019f12ef00d8ce Mon Sep 17 00:00:00 2001 From: pluris Date: Tue, 30 Jul 2024 09:20:32 +0900 Subject: [PATCH 2/2] typings: fix alphabetical order --- typings/internalBinding/fs.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/typings/internalBinding/fs.d.ts b/typings/internalBinding/fs.d.ts index 1417a16de71918..d487ce01ee1adc 100644 --- a/typings/internalBinding/fs.d.ts +++ b/typings/internalBinding/fs.d.ts @@ -291,8 +291,8 @@ export interface FsBinding { utimes: typeof InternalFSBinding.utimes; writeBuffer: typeof InternalFSBinding.writeBuffer; writeBuffers: typeof InternalFSBinding.writeBuffers; - writeString: typeof InternalFSBinding.writeString; writeFileUtf8: typeof InternalFSBinding.writeFileUtf8; + writeString: typeof InternalFSBinding.writeString; getFormatOfExtensionlessFile: typeof InternalFSBinding.getFormatOfExtensionlessFile; }