Skip to main content

Class: PkgMap<Value, Pkg>

@pvm/core.PkgMap

Type parameters

NameType
ValueValue
Pkgextends PkgPkg

Implements

  • Iterable<[Pkg, Value]>

Constructors

constructor

• new PkgMap<Value, Pkg>()

Type parameters

NameType
ValueValue
Pkgextends 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

NameType
pkgOrNamestring | Pkg

Returns

undefined | Value

Defined in

packages/pvm-core/lib/pkg-map.ts:24


has

â–¸ has(pkgOrName): boolean

Parameters

NameType
pkgOrNamestring | 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

NameType
pkgPkg
valueValue

Returns

void

Defined in

packages/pvm-core/lib/pkg-map.ts:15