Assuming I have an interface with many variables, and I don't wanna initialize all of them when I use it, so I just put the any
type assertion. I just wanna know if these two are the same or not:
eg:
export interface Foo {
a: string;
b: number;
c: Bar[];
d: string;
e: Bar;
}
Is
let foo: Foo = {} as any;
the same with
let foo: Foo | any = {};
?