feat: implicit convert BooleanT to NumberT
All checks were successful
/ test (pull_request) Successful in 19s
All checks were successful
/ test (pull_request) Successful in 19s
Also adds implicit conversion configuration option to Type constructor, and institutes a numbers-only bundle, and supports argument matching with implicit conversions. Still need to test that a behavior that invokes implicit conversion ends up with the conversion operation as a dependency (and so regenerates itself if the conversion changes).
This commit is contained in:
parent
5bee93dbb3
commit
bfc64f3789
14 changed files with 95 additions and 34 deletions
|
@ -1,7 +1,8 @@
|
|||
import {generics} from './generics.js'
|
||||
import {numbers} from './numbers.js'
|
||||
import * as booleans from './boolean/all.js'
|
||||
import * as generics from './generic/all.js'
|
||||
import * as numbers from './number/all.js'
|
||||
import {TypeDispatcher} from '#core/TypeDispatcher.js'
|
||||
|
||||
const math = new TypeDispatcher(generics, numbers)
|
||||
const math = new TypeDispatcher(booleans, generics, numbers)
|
||||
|
||||
export default math
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue