TypeStrong / dts-bundle

Export TypeScript .d.ts files as an external module definition
MIT License
308 stars 57 forks source link

fs.writeFileSync passes the encoding the wrong way #65

Open Borewit opened 6 years ago

Borewit commented 6 years ago

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.