[node] rename defaultEncoding option property to encoding. Turn-off no-var dtslint rule. (#19175)

This commit is contained in:
Aleh Zasypkin 2017-09-08 17:06:14 +02:00 committed by Andy
parent 0a02fbe82a
commit ceebd7b2ed
2 changed files with 2 additions and 2 deletions

View File

@ -202,7 +202,7 @@ readStream = fs.createReadStream(path, {
writeStream = fs.createWriteStream(path);
writeStream = fs.createWriteStream(path, {
flags: str,
defaultEncoding: str
encoding: str
});
function isDirectoryCallback(err: Error, isDirectory: boolean) {}

View File

@ -4227,7 +4227,7 @@ declare module "fs" {
*/
export function createWriteStream(path: PathLike, options?: string | {
flags?: string;
defaultEncoding?: string;
encoding?: string;
fd?: number;
mode?: number;
autoClose?: boolean;