npm explorer
get-object-properties-types - npm explorer
get-object-properties-types
v1.3.0
get type of properties from object
test
type
6
/week
Updated 3 years ago
ISC
Unpacked: 2.0 KB
Published by
Lucas Reichert Siqueira
npm
yarn
pnpm
bun
npm install get-object-properties-types
Repository
Homepage
npm
Readme
Dependencies
(0)
Versions
(4)
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.