refactor: Switch to 'map-like object keyed by string and type vector' format
See https://code.studioinfinity.org/glen/nanomath/wiki/Item-Specifications. Also stubs out the TypeDispatcher, mocking the merge function, so we can see that all of the proper things will be added. Ready for initial implementation of the TypeDispatcher.
This commit is contained in:
parent
040ec377a1
commit
69ef928b6e
10 changed files with 84 additions and 15 deletions
|
@ -1,7 +1,6 @@
|
|||
import {TypeDispatcher} from './core/TypeDispatcher.js'
|
||||
import {numbers} from './numbers.js'
|
||||
|
||||
for (const key in numbers) {
|
||||
for (const subkey in numbers[key]) {
|
||||
console.log(`${key}.${subkey} =`, numbers[key][subkey])
|
||||
}
|
||||
}
|
||||
const math = new TypeDispatcher(numbers)
|
||||
|
||||
export default math
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue