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

Argument of type '{ stringify: true; datetime: boolean; }' is not assignable to parameter of type 'IOptions' #9

Open
San1973 opened this issue Dec 17, 2022 · 1 comment

Comments

@San1973
Copy link

San1973 commented Dec 17, 2022

I am new in TS and when I tried running the code from your README for "decode file" section to just decode a dlt file, I ran into this error

goo.ts:8:87 - error TS2345: Argument of type '{ stringify: true; datetime: boolean; }' is not assignable to parameter of type 'IOptions'.
Object literal may only specify known properties, and 'datetime' does not exist in type 'IOptions'.

8 const tranform : DLT.TransformStream = new DLT.TransformStream({}, { stringify: true, datetime: true });
~~~~~~~~~~~~~~

goo.ts:24:28 - error TS2304: Cannot find name 'writer'.

24 reader.pipe(tranform).pipe(writer, { end: false });
~~~~~~

Found 2 errors in the same file, starting at: goo.ts:8

@San1973
Copy link
Author

San1973 commented Dec 17, 2022

It would be awesome if your README section gives a proper tutorial of how to get the DLT file decoded for novice users

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