fs.configDir
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Sebastian Frank 2022-02-08 18:49:52 +01:00
parent b261b9cf92
commit d2109ddea4
Signed by: apairon
GPG Key ID: A0E05A8199CE3F57

11
index.d.ts vendored
View File

@ -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