Say I have an array of strings:
const s = ['foo', 'rolo', 'zoombaz'];
and so I would get:
type v = {
foo: string,
rolo: string,
zoombaz: string
}
bonus: Ideally I am looking to map them to camel-case, so if I had:
const s = ['foo', 'rolo', 'zoom-baz'];
I would get:
type v = {
foo: string,
rolo: string,
zoomBaz: string
}
in some cases, I would want to tell it to use boolean instead of string. This is for a command line parser.