Framework
BuildStore
Interface: BuildStore
Key-value store for passing data between build hooks. Data persists across build/start and build/complete hooks within the same build session.
Methods
clear()
clear(): voidClear all data from the store.
Returns
void
delete()
delete(key): booleanDelete a key from the store.
Parameters
| Parameter | Type |
|---|---|
key | string |
Returns
boolean
get()
get<T>(key): TGet a value from the store.
Type Parameters
| Type Parameter |
|---|
T |
Parameters
| Parameter | Type |
|---|---|
key | string |
Returns
T
has()
has(key): booleanCheck if a key exists in the store.
Parameters
| Parameter | Type |
|---|---|
key | string |
Returns
boolean
set()
set<T>(key, value): voidSet a value in the store.
Type Parameters
| Type Parameter |
|---|
T |
Parameters
| Parameter | Type |
|---|---|
key | string |
value | T |
Returns
void
