README
get-type-of-properties-object
map the keys of object to the type of values.
example:
const object = { foo: 'bar', bar: 55}
convertToType(object) // { foo: 'string', bar: 'number' }
OBS: supports nested objects.
get type of properties from object
<script type="module">
import getObjectPropertiesTypes from 'https://cdn.skypack.dev/get-object-properties-types';
</script>
map the keys of object to the type of values.
example:
const object = { foo: 'bar', bar: 55}
convertToType(object) // { foo: 'string', bar: 'number' }
OBS: supports nested objects.