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