I want to use the 'typeof' keyword on an object with mapped types to get the type of each property.
Example:
interface OnlyNumbersOrBools {
[key: string]: number | boolean
}
const points: OnlyNumbersOrBools = {
will: 5,
chris: 2,
smith: false
}
typeof points;
// it says that it is type 'OnlyNumbersOrBools'
// i want it to be an object with types: { will: number, chris: number, smith: boolean }