feat: add nan to types, add hasnan and sign functions
All checks were successful
/ test (pull_request) Successful in 19s

Also makes certain to clean up the dependencies that are being
  generated even in case of throwing an error in the factory for
  a method.
This commit is contained in:
Glen Whitney 2025-04-15 20:33:13 -07:00
parent 686cd93927
commit c1791ddc20
8 changed files with 114 additions and 42 deletions

View file

@ -5,5 +5,6 @@ import {BooleanT} from '#boolean/BooleanT.js'
export const NumberT = new Type(n => typeof n === 'number', {
from: onType(BooleanT, math => math.number.resolve([BooleanT])),
one: 1,
zero: 0
zero: 0,
nan: NaN
})