Class: PkgMap<Value, Pkg>
@pvm/core.PkgMap
Type parameters
Name | Type |
---|---|
Value | Value |
Pkg | extends Pkg Pkg |
Implements
Iterable
<[Pkg
,Value
]>
Constructors
constructor
• new PkgMap<Value
, Pkg
>()
Type parameters
Name | Type |
---|---|
Value | Value |
Pkg | extends Pkg <Pkg >Pkg |
Defined in
packages/pvm-core/lib/pkg-map.ts:11
Properties
_map
• Protected
_map: Map
<string
, [Pkg
, Value
]>
Defined in
packages/pvm-core/lib/pkg-map.ts:9
Accessors
size
• get
size(): number
Returns
number
Defined in
packages/pvm-core/lib/pkg-map.ts:50
Methods
[iterator]
â–¸ [iterator](): IterableIterator
<[Pkg
, Value
]>
Returns
IterableIterator
<[Pkg
, Value
]>
Implementation of
Iterable.__@iterator@79
Defined in
packages/pvm-core/lib/pkg-map.ts:54
get
â–¸ get(pkgOrName
): undefined
| Value
Parameters
Name | Type |
---|---|
pkgOrName | string | Pkg |
Returns
undefined
| Value
Defined in
packages/pvm-core/lib/pkg-map.ts:24
has
â–¸ has(pkgOrName
): boolean
Parameters
Name | Type |
---|---|
pkgOrName | string | Pkg |
Returns
boolean
Defined in
packages/pvm-core/lib/pkg-map.ts:46
keys
â–¸ keys(): IterableIterator
<string
>
Returns
IterableIterator
<string
>
Defined in
packages/pvm-core/lib/pkg-map.ts:42
set
â–¸ set(pkg
, value
): void
Parameters
Name | Type |
---|---|
pkg | Pkg |
value | Value |
Returns
void