You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
import typed from 'typed-function'
const pocomath_universe = typed.create()
pocomath_universe.clear()
pocomath_universe.addType({name: 'number', test: n => typeof n === 'number'})
This is my fault: I thought addType should reproduce the behavior from v2 of inserting before Object, but overlooked softening that to inserting before 'any' if there is no Object type. I do not think the above code should throw an error, although it can be worked around by supplying the 'beforeObjectTest = false' parameter.
The text was updated successfully, but these errors were encountered:
To reproduce:
This is my fault: I thought addType should reproduce the behavior from v2 of inserting before Object, but overlooked softening that to inserting before 'any' if there is no Object type. I do not think the above code should throw an error, although it can be worked around by supplying the 'beforeObjectTest = false' parameter.
The text was updated successfully, but these errors were encountered: