DefinitelyTyped/types/write-file-atomic
Piotr Błażejewicz (Peter Blazejewicz) 99fe2e5223
feat(write-file-encoding): add support for encoding option (#44800)
* feat(write-file-encoding): add support for encoding option

The api supports string as an option This string option is the encodign
of the data, defaulting to 'utf8'. As the Node types are referenced,
simply BufferEncoding is beign used instead of string or string aliases
to align with Node types.
For backward compatiblity options 'encoding' is defined as:
BufferEncoding | ''

https://github.com/npm/write-file-atomic#write-file-atomic

Thanks!

* Be specific about allowed encoding as per PR comment

/cc @amcasey
2020-06-28 01:53:00 -04:00
..
index.d.ts
tsconfig.json
tslint.json
write-file-atomic-tests.ts