🚧 Wrestling with TypeScript
This commit is contained in:
parent
f4d2785972
commit
2dbebb87d6
7 changed files with 16 additions and 22 deletions
|
@ -1,7 +1,7 @@
|
|||
export class Attributes {
|
||||
list: any = {};
|
||||
|
||||
constructor(init) {
|
||||
constructor(init?) {
|
||||
for (let key in init) {
|
||||
let val = init[key];
|
||||
this.add(key, val);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue