On this page

Represents RuntimeSpecMap.

new RuntimeSpecMap(clone?): RuntimeSpecMap<T, R>
Attributes
clone:RuntimeSpecMap<T, R>
copy form this
Returns:RuntimeSpecMap<T, R>

Creates an instance of RuntimeSpecMap.

Attributes
size:number
Represents RuntimeSpecMap.
delete(runtime): void
Attributes
runtime:RuntimeSpec
the runtimes
Returns:void

Processes the provided runtime.


get(runtime): R | undefined
Attributes
runtime:RuntimeSpec
the runtimes
Returns:R | undefined
value

Returns value.


has(runtime): boolean
Attributes
runtime:RuntimeSpec
the runtimes
Returns:boolean
true, when the runtime is stored

Returns true, when the runtime is stored.


keys(): RuntimeSpec[]
Returns:RuntimeSpec[]

Represents RuntimeSpecMap.


provide(runtime, computer): R
Attributes
runtime:RuntimeSpec
the runtimes
computer:() => R
function to compute the value
Returns:R
the new value

Returns the new value.


set(runtime, value): void
Attributes
runtime:RuntimeSpec
the runtimes
value:R
the value
Returns:void

Updates default using the provided runtime.


update(runtime, fn): void
Attributes
runtime:RuntimeSpec
the runtimes
fn:(value?: R) => R
function to update the value
Returns:void

Processes the provided runtime.


values(): IterableIterator<R>
Returns:IterableIterator<R>
values

Returns values.