This commit is contained in:
parent
b261b9cf92
commit
d2109ddea4
11
index.d.ts
vendored
11
index.d.ts
vendored
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user