This used to be valid code:
```
class Foo {
constructor() {
this.bar = ‘string’;
}
}
```
This will now fail since ‘bar’ is not explicitly
defined as a field. We now have to write:
```
class Foo {
bar:string; // << REQUIRED
constructor() {
this.bar = ‘string’;
}
}
```
32 lines
671 B
JavaScript
32 lines
671 B
JavaScript
import {ABSTRACT, CONST, Type} from 'facade/lang';
|
|
import {List} from 'facade/collection';
|
|
|
|
export class TemplateConfig {
|
|
url:any; //string;
|
|
inline:any; //string;
|
|
directives:any; //List<Type>;
|
|
formatters:any; //List<Type>;
|
|
source:any;//List<TemplateConfig>;
|
|
@CONST()
|
|
constructor({
|
|
url,
|
|
inline,
|
|
directives,
|
|
formatters,
|
|
source
|
|
}: {
|
|
url: string,
|
|
inline: string,
|
|
directives: List<Type>,
|
|
formatters: List<Type>,
|
|
source: List<TemplateConfig>
|
|
})
|
|
{
|
|
this.url = url;
|
|
this.inline = inline;
|
|
this.directives = directives;
|
|
this.formatters = formatters;
|
|
this.source = source;
|
|
}
|
|
}
|