Skip to content

@pumpkin-plugins/config API / schema / defineConfig

Function: defineConfig() ​

defineConfig<N>(title, nodes): ConfigSchema<N>

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

Declares a config file.

Type Parameters ​

N ​

N extends Record<string, ConfigNode>

Parameters ​

title ​

string

Name shown in the file's header comment.

nodes ​

N

The top-level sections and tables, in file order.

Returns ​

ConfigSchema<N>

The schema.

Pumpkin Plugins documentation