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

helix / FieldView

Type Alias: FieldView<V> โ€‹

FieldView<V> = V extends readonly StoredStack[] ? ItemListView : V extends readonly infer E[] ? ListView<NonNullable<E>> : V extends NbtNum ? NbtView : V extends object ? NbtView & Omit<DataView<V>, keyof NbtView> : NbtView

Defined in: core/frontend/nodes/data-view/types.ts:15

The view a field of type V gets: an item list, a typed list, a compound with typed fields, or a plain value.

A compound field named like a view method (set, get, ...) is left off its fields; reach it with .child(name).

Type Parameters โ€‹

V โ€‹

V

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