A Client Setting

interface SettingConfig {
    choices?: Object;
    config: boolean;
    default?: any;
    hint: string;
    id?: string;
    input?: CustomFormInput;
    key: string;
    name: string;
    namespace: string;
    onChange?: Function;
    range?: Object;
    scope: "world" | "client" | "user";
    type: BuiltinType | typeof DataModel | DataField;
}

Properties

choices?: Object

For string Types, defines the allowable values

config: boolean

Indicates if this Setting should render in the Config application

default?: any

The default value

hint: string

An additional human-readable hint

id?: string

The combination of {namespace}.{key}

A custom form field input used in conjunction with a DataField type

key: string

A unique machine-readable id for the setting

name: string

The human-readable name

namespace: string

The namespace the setting belongs to

onChange?: Function

Executes when the value of this Setting changes

range?: Object

For numeric Types, defines the allowable range

scope: "world" | "client" | "user"

The scope the Setting is stored in, either World, Client, or User.

The type of data stored by this Setting