You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A mild thorn in the side of mathjs has been frequent need to update the TypeScript typings. #2448 if merged will make some progress toward stabilizing this, as the TypeScript "exercising" of mathjs in the tests increases over time (as well as allow the ability to make changes to those typings with confidence that existing use won't be broken).
Another piece of the puzzle would simply be a check that at least every function (perhaps with some exception list) exported by mathjs is at least mentioned in both types/index.d.ts and types/index.ts, so that there's at least a chance it is both declared and tested. That should at least prevent the (so far relatively common) case of "I added a function but oops forgot to type it."
My feeling is this should likely be another step in the new test:types script created if #2448 is merged, if possible.
The text was updated successfully, but these errors were encountered:
A mild thorn in the side of mathjs has been frequent need to update the TypeScript typings. #2448 if merged will make some progress toward stabilizing this, as the TypeScript "exercising" of mathjs in the tests increases over time (as well as allow the ability to make changes to those typings with confidence that existing use won't be broken).
Another piece of the puzzle would simply be a check that at least every function (perhaps with some exception list) exported by mathjs is at least mentioned in both
types/index.d.ts
andtypes/index.ts
, so that there's at least a chance it is both declared and tested. That should at least prevent the (so far relatively common) case of "I added a function but oops forgot to type it."My feeling is this should likely be another step in the new
test:types
script created if #2448 is merged, if possible.The text was updated successfully, but these errors were encountered: