mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
[node] rename defaultEncoding option property to encoding. Turn-off no-var dtslint rule. (#19175)
This commit is contained in:
parent
0a02fbe82a
commit
ceebd7b2ed
@ -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) {}
|
||||
|
||||
2
types/node/index.d.ts
vendored
2
types/node/index.d.ts
vendored
@ -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;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user