feat: add nan to types, add hasnan and sign functions
All checks were successful
/ test (pull_request) Successful in 19s
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:
parent
686cd93927
commit
c1791ddc20
8 changed files with 114 additions and 42 deletions
|
@ -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
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue