Skip to content

@pumpkin-plugins/config API / load / LoadResult

Interface: LoadResult<V> ​

Defined in: tools/config/src/load.ts:29

The loaded values and what happened to the file.

Type Parameters ​

V ​

V

Properties ​

added ​

added: string[]

Defined in: tools/config/src/load.ts:37

Settings written to the file because it didn't have them yet.


removed ​

removed: string[]

Defined in: tools/config/src/load.ts:39

Settings dropped from the file because the schema no longer has them.


status ​

status: LoadStatus

Defined in: tools/config/src/load.ts:33

What was done to the file.


values ​

values: V

Defined in: tools/config/src/load.ts:31

Every setting, with defaults filled in.


warnings ​

warnings: string[]

Defined in: tools/config/src/load.ts:35

Problems to show the user. Invalid values always appear; unknown settings only when the file was kept.

Pumpkin Plugins documentation