interface Example {
value?: string
[prop: string]: any
}
const xxx: Example = { name: 'Thomas' }
const v = xxx.name
Adding "any" here actually removes the inferred "string" type on name that would otherwise be there if xxx was not assigned to Example.
Is there any way to have a interface or type that passed the inferred type?