Answers for "typescript get type of object keys"

1

typescript object.keys

const keys = Object.keys(objectName) as Array<keyof typeof objectName>
Posted by: Guest on February-13-2022
1

typescript use object keys as index

{ [key in keyof IUser]: boolean }
Posted by: Guest on May-26-2021
0

get object key value typescript

let TestObject={name:'hamza'};
let ObjectKeys=Object.key(TestObject);
console.log(ObjectKeys)
Posted by: Guest on May-06-2022

Code answers related to "typescript get type of object keys"

Code answers related to "TypeScript"

Browse Popular Code Answers by Language