Can't extend WeakMap in type-checked JS files #23551
Labels
Bug
A bug in TypeScript
Fix Available
A PR has been opened for this issue
Fixed
A PR has been merged for this issue
Milestone
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
Map
orSet
, or in a*.ts
file.The text was updated successfully, but these errors were encountered: