math5/src/index.ts

11 lines
343 B
TypeScript
Raw Normal View History

import {assemble} from '@/core/Dispatcher'
import * as specifications from './all'
const math = assemble(specifications)
console.log('PRODUCED', math)
console.log(math.typeOf(17))
console.log(math.typeOf({re: 3.4, im: -0.1}))
console.log(math.typeOf({re: {re: 1, im: 0}, im: {re: 0, im: -1}}))
console.log(math.typeOf('no string type yet'))