The following two Typescript square bracket notations—are there any differences between them? Attempted a few situations, and it appears they are equivalent.
I'm grateful.
interface test {
a: string;
b: string;
}
const x: test[] = [{a: "aaaa", b: "bbbb"}]
const y: [test] = [{a: "aaaa", b: "bbbb"}]