Skip to content

Universal DevTools Kit SDK


Universal DevTools Kit SDK / @u-devtools/core / PluginSettingsSchema

Interface: PluginSettingsSchema ​

Defined in: index.ts:416

Plugin settings schema - defines all user-configurable settings for a plugin.

Settings are automatically displayed in the DevTools settings panel and can be accessed via api.settings.get() and api.settings.set().

Example ​

ts
const plugin: PluginClientInstance = {
  name: 'My Plugin',
  icon: 'Cube',
  settings: {
    apiUrl: {
      label: 'API URL',
      type: 'string',
      default: 'https://api.example.com'
    },
    timeout: {
      label: 'Timeout (ms)',
      type: 'number',
      default: 5000
    }
  }
};

Indexable ​

[key: string]: SettingSchemaDef

Released under the MIT License.