fs - fix leftover todo

This commit is contained in:
Benjamin Pasero
2021-02-04 11:29:58 +01:00
parent 0eb2d4556a
commit 30ba42cf46
-7
View File
@@ -637,10 +637,3 @@ export async function exists(path: string): Promise<boolean> {
}
//#endregion
// TODO@bpasero remove me
export function readFile(path: string): Promise<Buffer>;
export function readFile(path: string, encoding: string): Promise<string>;
export function readFile(path: string, encoding?: string): Promise<Buffer | string> {
return fs.promises.readFile(path, encoding);
}