DEV Community

loading...

Discussion on: Understanding Loose Equality In JavaScript

Collapse
emnudge profile image
EmNudge Author • Edited

I didn't, but that sounds like a good idea, so I've gone ahead and converted it to a liquid tag!

While I have you here, however, are there any plans to add a tsConfig.json file to jsitor? I had to abandon using TS for a couple of REPLs because it wouldn't allow me to use modern JS syntax without a bunch of
// @ts-ignore
being thrown around the place.

Collapse
ashvin777 profile image
Ashvin Kumar Suthar

We didn't have any plan yet to add a config file, however, we can allow modern JS syntax if anything is missing and make it configurable if required.

Is there any particular syntax with which you are looking for that is not working? Please let us know.
You can also report any bugs or requests on our Github issues page - github.com/jsitor/jsitor/issues/ne...

Thread Thread
emnudge profile image
EmNudge Author

.includes() and BigInt() are the ones that have been specifically annoying me when making recent snippets, but I'm sure there are more that I just haven't come across yet.
Using symbols as index values might just not be allowed in TS at all, so idk if there's a good solution to that.
i.e. obj[Symbol.toPrimitive] requires any as an index or just // @ts-ignore