Imagine having an object literal like this:
const defaultConfig = {
size: 'medium',
shape: 'circle',
material: 'metal'
}
Is there a simple method to generate an interface for this object, instead of manually creating one like this?
interface Configuration {
size: string,
shape: string,
material: string
}