Alpha: this compiler is under active development and updates will break your projects. Not recommended for real use yet.
Skip to content

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 โ€‹

Storage

Returns โ€‹

DataView<T>

Released under the MIT License ยท Credits
These docs were written with AI; the layout and every page have been reviewed by a human.