Skip to content

Commit 9f97d53

Browse files
Added documentation
1 parent 2ae30c8 commit 9f97d53

3 files changed

Lines changed: 24 additions & 0 deletions

File tree

map.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@
66

77
/**
88
* Private data.
9+
*
10+
* @template K Key type.
11+
* @template V Value type.
912
*/
1013
interface Pri<K extends WeakKey = WeakKey, V = any> {
1114
/**
@@ -33,6 +36,9 @@ let pri: WeakMap<MeekMap, Pri>;
3336

3437
/**
3538
* Like WeakMap.
39+
*
40+
* @template K Key type.
41+
* @template V Value type.
3642
*/
3743
export class MeekMap<K extends WeakKey = WeakKey, V = any> {
3844
/**
@@ -237,6 +243,9 @@ export class MeekMap<K extends WeakKey = WeakKey, V = any> {
237243

238244
/**
239245
* Readonly MeekMap.
246+
*
247+
* @template K Key type.
248+
* @template V Value type.
240249
*/
241250
export type ReadonlyMeekMap<K extends WeakKey = WeakKey, V = any> = Omit<
242251
MeekMap<K, V>,

set.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66

77
/**
88
* Private data.
9+
*
10+
* @template T Value type.
911
*/
1012
interface Pri<T extends WeakKey = WeakKey> {
1113
/**
@@ -28,6 +30,8 @@ let pri: WeakMap<MeekSet, Pri>;
2830

2931
/**
3032
* Like WeakSet.
33+
*
34+
* @template T Value type.
3135
*/
3236
export class MeekSet<T extends WeakKey = WeakKey> {
3337
/**
@@ -338,6 +342,8 @@ export class MeekSet<T extends WeakKey = WeakKey> {
338342

339343
/**
340344
* Readonly MeekSet.
345+
*
346+
* @template T Value type.
341347
*/
342348
export type ReadonlyMeekSet<T extends WeakKey> = Omit<
343349
MeekSet<T>,

valuemap.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@
66

77
/**
88
* Private data.
9+
*
10+
* @template K Key type.
11+
* @template V Value type.
912
*/
1013
interface Pri<K = any, V extends WeakKey = WeakKey> {
1114
/**
@@ -23,6 +26,9 @@ let pri: WeakMap<MeekValueMap, Pri>;
2326

2427
/**
2528
* Like WeakValueMap.
29+
*
30+
* @template K Key type.
31+
* @template V Value type.
2632
*/
2733
export class MeekValueMap<K = any, V extends WeakKey = WeakKey> {
2834
/**
@@ -207,6 +213,9 @@ export class MeekValueMap<K = any, V extends WeakKey = WeakKey> {
207213

208214
/**
209215
* Readonly MeekValueMap.
216+
*
217+
* @template K Key type.
218+
* @template V Value type.
210219
*/
211220
export type ReadonlyMeekValueMap<K = any, V extends WeakKey = WeakKey> = Omit<
212221
MeekValueMap<K, V>,

0 commit comments

Comments
 (0)