You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
474 B
14 lines
474 B
2 years ago
|
declare const fs: {
|
||
|
readFile(path: string, encoding: string): Promise<string>;
|
||
|
readFile(path: string): Promise<Buffer>;
|
||
|
exists(path: string): Promise<boolean>;
|
||
|
unlink(path: string): Promise<void>;
|
||
|
writeFile(path: string, data: string, options?: string): Promise<void>;
|
||
|
writeFile(path: string, data: Buffer): Promise<void>;
|
||
|
readdir(path: string): Promise<string[]>;
|
||
|
rmdir(path: string): Promise<void>;
|
||
|
[key: string]: any;
|
||
|
};
|
||
|
|
||
|
export = fs;
|