From d2109ddea4b7d33d08a0dd0f9e230c51151f806c Mon Sep 17 00:00:00 2001 From: Sebastian Frank Date: Tue, 8 Feb 2022 18:49:52 +0100 Subject: [PATCH] fs.configDir --- index.d.ts | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/index.d.ts b/index.d.ts index 67aef35..ea6cda2 100644 --- a/index.d.ts +++ b/index.d.ts @@ -147,6 +147,13 @@ interface SmtpPackage { } interface FsPackage { + + /** + * get directory path of api config file + * + */ + configPath(): string + /** * read a file relative to config dir and return its content * @@ -155,7 +162,7 @@ interface FsPackage { */ readFile(path: string, options?: { bytes: boolean // if true return []byte instead of string - }): string + }): string | any /** * stat file or directory @@ -497,7 +504,7 @@ interface PdfPackage { rtl?: boolean position?: "full" | "tl" | "tc" | "tr" | "l" | "c" | "r" | "bl" | "bc" | "br" offset?: string - scalefactor?: number + scalefactor?: number | string aligntext?: "left" | "center" | "right" | "justified" strokecolor?: string fillcolor?: string