fix(metadata): fix typechecking with typescript@next
This commit is contained in:
parent
9b39e499ac
commit
0a46f37444
|
@ -16,7 +16,7 @@ export class Symbols {
|
||||||
private get symbols(): Map<string, MetadataValue> {
|
private get symbols(): Map<string, MetadataValue> {
|
||||||
let result = this._symbols;
|
let result = this._symbols;
|
||||||
if (!result) {
|
if (!result) {
|
||||||
result = this._symbols = new Map();
|
result = this._symbols = new Map<string, MetadataValue>();
|
||||||
populateBuiltins(result);
|
populateBuiltins(result);
|
||||||
this.buildImports();
|
this.buildImports();
|
||||||
}
|
}
|
||||||
|
@ -110,4 +110,4 @@ function populateBuiltins(symbols: Map<string, MetadataValue>) {
|
||||||
'Uint8ClampedArray', 'Uint16Array', 'Int16Array', 'Int32Array', 'Uint32Array', 'Float32Array',
|
'Uint8ClampedArray', 'Uint16Array', 'Int16Array', 'Int32Array', 'Uint32Array', 'Float32Array',
|
||||||
'Float64Array']
|
'Float64Array']
|
||||||
.forEach(name => symbols.set(name, {__symbolic: 'reference', name}));
|
.forEach(name => symbols.set(name, {__symbolic: 'reference', name}));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue