I came across the following code snippet while reading some documentation…can someone explain to me how to interpret the following declaration of y within square brackets, at first I thought this was array destructuring, but that does not seem right…
class x {
[y: string]: any;
constructor(public uid: string) {}
}