TypeScript Version: 2.8.1
Search Terms:
extend WeakMap, WeakSet, "Base constructors must all have the same return type."
Code
class ColorMap extends WeakMap {
constructor(color) {
super();
}
}
Type-checked using:
tsc color.js -t es6 --checkJs --allowJs --noEmit
Actual behavior:
color.js(1,24): error TS2510: Base constructors must all have the same return type.
Notes:
It works with a Map or Set, or in a *.ts file.
TypeScript Version: 2.8.1
Search Terms:
extend WeakMap, WeakSet, "Base constructors must all have the same return type."
Code
Type-checked using:
Actual behavior:
Notes:
It works with a
MaporSet, or in a*.tsfile.