interface A{
a: string;
b: string;
c: string;
// potentially more properties
}
interface B{
[K in keyof A]: Boolean;
}
What could be the issue with this code? My goal is to generate a similar structure programmatically:
interface B{
x: Boolean;
y: Boolean;
z: Boolean;
// perhaps additional properties later on
}