Creating a Generic Type from an Immutable Object Using "as const"
Consider the following immutable object:
const usersDefaultValues = {
firstName: '',
isGuest: false
} as const
We aim to generate the following type/interface based on this object:
type DefaultValuesSchema = {
firstName: string
isGuest: boolean
}