I hereby claim:
- I am dcefram on github.
- I am dcefram (https://keybase.io/dcefram) on keybase.
- I have a public key whose fingerprint is A455 F67A 6FEB EE31 BF36 2B8E E983 F91C 1428 E92F
To claim this, I am signing this object:
alert('hello'); |
function generateTypes(obj, name) { | |
const parsed = Object.keys(obj).reduce((str, key) => { | |
let type = Array.isArray(obj[key]) ? typeof obj[key][0] : typeof obj[key]; | |
if (type === 'object') { | |
type = key.charAt(0).toUpperCase() + key.slice(1, key.length - 1); | |
} | |
type = type === 'undefined' ? 'any' : type; | |
type = isArray ? type + '[]' : type; |
I hereby claim:
To claim this, I am signing this object: