Marc Knaup
11/18/2020, 1:44 AMSvyatoslav Kuzmich [JB]
11/18/2020, 10:57 AMinterface I
class A : I
compiles down to
function I() {
}
I.$metadata$ = {
kind: Kind_INTERFACE,
simpleName: 'I',
interfaces: []
};
function A() {
}
A.$metadata$ = {
kind: Kind_CLASS,
simpleName: 'A',
interfaces: [I]
};
As you can see there is a small overhead of $metadata$
property per class and interface, which might increase bundle size and module initialization time. However, runtime performance is unaffected and similar to ES6 classes compiled down to ES5.Marc Knaup
11/18/2020, 2:46 PM