Replaced any with unknowns in txikijs.d.ts#522
Conversation
unknown in my opinion better matches the semantic of ts types for this situation. Functionally there is no difference since the code implementing that interface is written in js.
any with unknowns in txikijs.d.ts
|
Hmm I don't necessarily agree. |
|
When using The fact other libraries are using Incidentally, this is why virtually all modern linters are so opposed to the usage of |
|
Yeah I get that / know the difference. I just didn't see how it is useful (even just semantically) for an API typing. But I didn't really consider that this where callbacks which can be user provided, so yes |
|
Thanks for taking a look @lal12 ! |
unknownin my opinion better matches the semantic of ts types for this situation. Functionally there is no difference since the code implementing that interface is written in js.