4 Commits

Author SHA1 Message Date
Glen Whitney
19b4eac98a
test(TypeScript): Enhance test to compile as well as run. (#2634)
Resolves #2633.
2022-07-27 15:34:58 +02:00
Chris Chudzicki
99839a8da3
Add TypeScript definitions for src/utils/is.js (#2432)
This is a first step toward full publication of these functions,
that were already being exported by mathjs but had not yet
had the associated actions (documentation/available in 
parser/typed, etc.) Also, makes most of them into TypeScript
type guards, and adds Matrix as a constructor type. Resolved #2431.

Co-authored-by: Glen Whitney <glen@studioinfinity.org>
2022-03-17 16:17:32 -07:00
Sam Estep
bb9eb4e0ec
Add checks for type declarations (#2448)
* Add overloads for Matrix add and subtract

* Add check for types/index.ts

* Fix type errors in types/index.ts

* Fix a couple execution errors

* Run test:types as part of test:all

* Fix remaining errors

* Replace types/index.ts comments with asserts

* Add tests for narrowed type inference

* Add dual-purpose comment at top of types/index.ts

* Update AUTHORS

* Use Glen's alternate test:types suggestion
2022-03-08 15:59:35 +01:00
Meow
2b402f7cc3
Add type declaration of DefinitelyTyped (#2192)
Co-authored-by: Jos de Jong <wjosdejong@gmail.com>
2021-05-09 15:20:27 +02:00