refactor(compiler): improve types, misc
This commit is contained in:
committed by
Tobias Bosch
parent
79e1c7b807
commit
bdcf46f82e
@@ -22,7 +22,7 @@ class _ValueOutputAstTransformer implements ValueTransformer {
|
||||
}
|
||||
|
||||
visitStringMap(map: {[key: string]: any}, type: o.MapType): o.Expression {
|
||||
var entries: Array<string|o.Expression>[] = [];
|
||||
const entries: [string, o.Expression][] = [];
|
||||
Object.keys(map).forEach(key => { entries.push([key, visitValue(map[key], this, null)]); });
|
||||
return o.literalMap(entries, type);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user