Wraps a value in a TypeValue object containing both its determined type and the original value.
Optional
The value to wrap
Optional list of additional custom instances to check against for typing
A TypeValue wrapper object
const wrapper = asType('hello'); // { type: 'String', value: 'hello' } Copy
const wrapper = asType('hello'); // { type: 'String', value: 'hello' }
Wraps a value in a TypeValue object containing both its determined type and the original value.