Appearance
helix / StorageData
Function: StorageData() โ
StorageData<
T>(id):DataView<T>
Defined in: core/frontend/nodes/data-view/types.ts:49
Command storage id, its fields typed by T.
const game = StorageData<{ round: number; boss: { hp: number } }>(dp.storage("game")); game.boss.hp.set(count);
Type Parameters โ
T โ
T extends object
Parameters โ
id โ
Returns โ
DataView<T>