Skip to content

@pumpkin-plugins/config API / schema / table

Function: table() ​

table<F>(options): TableNode<F>

Defined in: tools/config/src/schema.ts:55

Declares a table of entries with optional settings.

Type Parameters ​

F ​

F extends Fields

Parameters ​

options ​

Description, what entries are named after, an example entry name and the fields every entry may have.

defaults? ​

TableValues<F>

description ​

string

entryName ​

string

exampleKey ​

string

fields ​

F

Returns ​

TableNode<F>

The table.

Pumpkin Plugins documentation