dts-bundle icon indicating copy to clipboard operation
dts-bundle copied to clipboard

fs.writeFileSync passes the encoding the wrong way

Open Borewit opened this issue 7 years ago • 0 comments

Failed to compile the project:

Running "ts:main" (ts) task
Compiling...
Using tsc v2.9.2
lib/index.ts(186,53): error TS2559: Type '"utf8"' has no properties in common with type '{ encoding?: string; mode?: string; flag?: string; }'.
lib/index.ts(427,44): error TS2559: Type '"utf8"' has no properties in common with type '{ encoding?: string; mode?: string; flag?: string; }'.

The gues the encoding should be passed wrapped in an option object.

Borewit avatar Sep 03 '18 18:09 Borewit