Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fs.writeFileSync passes the encoding the wrong way #65

Open
Borewit opened this issue Sep 3, 2018 · 0 comments
Open

fs.writeFileSync passes the encoding the wrong way #65

Borewit opened this issue Sep 3, 2018 · 0 comments

Comments

@Borewit
Copy link

Borewit commented Sep 3, 2018

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant