There are some modifications, like Infinity and NaN will get 'number' when you ask JS for typeof, but other than that, the structure here is mostly the same.
Steps to validate locally
Since this is purely new test coverage, I'm going to merge this in assuming CI passes.
What does this PR do and why?
Quite similar to https://github.com/mobxjs/mobx-state-tree/pull/2121, but for
t.number
instead.There are some modifications, like
Infinity
andNaN
will get'number'
when you ask JS fortypeof
, but other than that, the structure here is mostly the same.Steps to validate locally
Since this is purely new test coverage, I'm going to merge this in assuming CI passes.