SettingsPluginConfig: {
    persist?: boolean;
    storage?: {
        get(
            settingId: string,
        ): string | boolean | Promise<boolean> | Promise<string>;
        set(settingId: string, value: string | boolean): void;
    };
}

Type declaration

  • Optionalpersist?: boolean

    should the settings be saved accross sessions

    false
    
  • Optionalstorage?: {
        get(
            settingId: string,
        ): string | boolean | Promise<boolean> | Promise<string>;
        set(settingId: string, value: string | boolean): void;
    }

    custom storage handler, defaults to LocalStorage

    LocalStorage
    
    • get:function
      • return undefined or null if the option does not exist

        Parameters

        • settingId: string

        Returns string | boolean | Promise<boolean> | Promise<string>

    • set:function