Skip to content
Work in progress. These docs describe Spawnite at launch, and some parts are still being built.

grid

grid<Values, Size>(type, size, gridOptions?): GridSchemaField<Values, Size["length"]>

A trait’s grid field: the typed array type of size cells.

Type Parameter
Values extends GridArray
Size extends GridSize
Parameter Type
type (length) => Values
size Size
gridOptions GridOptions

GridSchemaField<Values, Size["length"]>