We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
WeakSet
getGenericsForNamespace
WeakMap
1 parent fbfbf5a commit 1bd2aa4Copy full SHA for 1bd2aa4
scripts/build-entries-and-types/templates.mjs
@@ -46,6 +46,9 @@ function getGenericsForNamespace(namespace) {
46
if (namespace === 'WeakMap') {
47
return '<K extends WeakKey, V>';
48
}
49
+ if (namespace === 'WeakSet') {
50
+ return '<T extends WeakKey>';
51
+ }
52
if (namespacesWithTwoGeneric.includes(namespace)) {
53
return '<K, V>';
54
0 commit comments