mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-05-12 11:51:10 +08:00
Add fs.writeFileSync overloads and tests
This commit is contained in:
@@ -169,6 +169,9 @@ namespace fs_tests {
|
||||
encoding: "ascii"
|
||||
},
|
||||
assert.ifError);
|
||||
|
||||
fs.writeFileSync("testfile", "content", "utf8");
|
||||
fs.writeFileSync("testfile", "content", { encoding: "utf8" });
|
||||
}
|
||||
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user