From 39da9c02fc1fe87e9c95ca77089f1d1911b266e3 Mon Sep 17 00:00:00 2001 From: Sebastian Frank Date: Tue, 22 Feb 2022 14:03:10 +0100 Subject: [PATCH] context.fs.writeFile --- index.d.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/index.d.ts b/index.d.ts index dce415d..77e444c 100644 --- a/index.d.ts +++ b/index.d.ts @@ -193,6 +193,14 @@ interface FsPackage { bytes: boolean // if true return []byte instead of string }): string | any + /** + * write data to a file relative to config dir + * + * @param path relative file path + * @param data string or []byte data + */ + writeFile(path: string, data: string|any): null + /** * stat file or directory *