1 |
|
2 |
|
3 |
|
4 |
|
5 |
|
6 |
|
7 |
|
8 |
|
9 | export = writeFile;
|
10 |
|
11 | declare function writeFile(filename: string, data: string | Buffer, options: writeFile.Options | BufferEncoding, callback: (error?: Error) => void): void;
|
12 | declare function writeFile(filename: string, data: string | Buffer, callback: (error?: Error) => void): void;
|
13 | declare function writeFile(filename: string, data: string | Buffer, options?: writeFile.Options | BufferEncoding): Promise<void>;
|
14 |
|
15 | declare namespace writeFile {
|
16 | function sync(filename: string, data: string | Buffer, options?: Options | BufferEncoding): void;
|
17 |
|
18 | interface Options {
|
19 | chown?: {
|
20 | uid: number;
|
21 | gid: number;
|
22 | } | undefined;
|
23 | |
24 |
|
25 |
|
26 | encoding?: BufferEncoding | undefined;
|
27 | fsync?: boolean | undefined;
|
28 | mode?: number | undefined;
|
29 | }
|
30 | }
|