How do I use an object's keys as a type?
const exampleObject = {
test: 1,
keyName: 2,
hello: 3
};
type ExampleObjectKeys = keyof typeof exampleObject;
const exampleObject = {
test: 1,
keyName: 2,
hello: 3
};
type ExampleObjectKeys = keyof typeof exampleObject;