Skip to main content

Class: PkgSet<Pkg>

@pvm/core.PkgSet

Type parameters

NameType
Pkgextends PkgPkg

Hierarchy

Constructors

constructor

• new PkgSet<Pkg>(packages?)

Type parameters

NameType
Pkgextends Pkg<Pkg>Pkg

Parameters

NameTypeDefault value
packagesIterable<Pkg>[]

Inherited from

ImmutablePkgSet.constructor

Defined in

packages/pvm-core/lib/pkg-set.ts:11

Properties

_map

• Protected _map: Map<string, Pkg>

Inherited from

ImmutablePkgSet._map

Defined in

packages/pvm-core/lib/pkg-set.ts:9

Accessors

size

• get size(): number

Returns

number

Inherited from

ImmutablePkgSet.size

Defined in

packages/pvm-core/lib/pkg-set.ts:45

Methods

[iterator]

â–¸ [iterator](): IterableIterator<Pkg>

Returns

IterableIterator<Pkg>

Inherited from

ImmutablePkgSet.[iterator]

Defined in

packages/pvm-core/lib/pkg-set.ts:41


add

â–¸ add(pkg): PkgSet<Pkg>

Parameters

NameType
pkgPkg

Returns

PkgSet<Pkg>

Defined in

packages/pvm-core/lib/pkg-set.ts:69


addIterable

â–¸ addIterable(pkgset): PkgSet<Pkg>

Parameters

NameType
pkgsetIterable<Pkg>

Returns

PkgSet<Pkg>

Defined in

packages/pvm-core/lib/pkg-set.ts:74


asMut

â–¸ asMut(): PkgSet<Pkg>

Returns

PkgSet<Pkg>

Inherited from

ImmutablePkgSet.asMut

Defined in

packages/pvm-core/lib/pkg-set.ts:63


clone

â–¸ clone(): PkgSet<Pkg>

Returns

PkgSet<Pkg>

Inherited from

ImmutablePkgSet.clone

Defined in

packages/pvm-core/lib/pkg-set.ts:57


freeze

â–¸ freeze(): ImmutablePkgSet<Pkg>

Returns

ImmutablePkgSet<Pkg>

Defined in

packages/pvm-core/lib/pkg-set.ts:83


get

â–¸ get(pkgOrName): undefined | Pkg

Parameters

NameType
pkgOrNamestring | Pkg

Returns

undefined | Pkg

Inherited from

ImmutablePkgSet.get

Defined in

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


has

â–¸ has(pkgOrName): boolean

Parameters

NameType
pkgOrNamestring | Pkg

Returns

boolean

Inherited from

ImmutablePkgSet.has

Defined in

packages/pvm-core/lib/pkg-set.ts:37


keys

â–¸ keys(): IterableIterator<string>

Returns

IterableIterator<string>

Inherited from

ImmutablePkgSet.keys

Defined in

packages/pvm-core/lib/pkg-set.ts:33


map

â–¸ map<T>(fn): T[]

Type parameters

Name
T

Parameters

NameType
fn(pkg: Pkg) => T

Returns

T[]

Inherited from

ImmutablePkgSet.map

Defined in

packages/pvm-core/lib/pkg-set.ts:53


toArray

â–¸ toArray(): Pkg[]

Returns

Pkg[]

Inherited from

ImmutablePkgSet.toArray

Defined in

packages/pvm-core/lib/pkg-set.ts:49