Class: PkgSet<Pkg>
@pvm/core.PkgSet
Type parameters
Name | Type |
---|---|
Pkg | extends Pkg Pkg |
Hierarchy
ImmutablePkgSet
<Pkg
>↳
PkgSet
Constructors
constructor
• new PkgSet<Pkg
>(packages?
)
Type parameters
Name | Type |
---|---|
Pkg | extends Pkg <Pkg >Pkg |
Parameters
Name | Type | Default value |
---|---|---|
packages | Iterable <Pkg > | [] |
Inherited from
Defined in
packages/pvm-core/lib/pkg-set.ts:11
Properties
_map
• Protected
_map: Map
<string
, Pkg
>
Inherited from
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
Defined in
packages/pvm-core/lib/pkg-set.ts:41
add
â–¸ add(pkg
): PkgSet
<Pkg
>
Parameters
Name | Type |
---|---|
pkg | Pkg |
Returns
PkgSet
<Pkg
>
Defined in
packages/pvm-core/lib/pkg-set.ts:69
addIterable
â–¸ addIterable(pkgset
): PkgSet
<Pkg
>
Parameters
Name | Type |
---|---|
pkgset | Iterable <Pkg > |
Returns
PkgSet
<Pkg
>
Defined in
packages/pvm-core/lib/pkg-set.ts:74
asMut
â–¸ asMut(): PkgSet
<Pkg
>
Returns
PkgSet
<Pkg
>
Inherited from
Defined in
packages/pvm-core/lib/pkg-set.ts:63
clone
â–¸ clone(): PkgSet
<Pkg
>
Returns
PkgSet
<Pkg
>
Inherited from
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
Name | Type |
---|---|
pkgOrName | string | Pkg |
Returns
undefined
| Pkg
Inherited from
Defined in
packages/pvm-core/lib/pkg-set.ts:15
has
â–¸ has(pkgOrName
): boolean
Parameters
Name | Type |
---|---|
pkgOrName | string | Pkg |
Returns
boolean
Inherited from
Defined in
packages/pvm-core/lib/pkg-set.ts:37
keys
â–¸ keys(): IterableIterator
<string
>
Returns
IterableIterator
<string
>
Inherited from
Defined in
packages/pvm-core/lib/pkg-set.ts:33
map
â–¸ map<T
>(fn
): T
[]
Type parameters
Name |
---|
T |
Parameters
Name | Type |
---|---|
fn | (pkg : Pkg ) => T |
Returns
T
[]
Inherited from
Defined in
packages/pvm-core/lib/pkg-set.ts:53
toArray
â–¸ toArray(): Pkg
[]
Returns
Pkg
[]