type FeatureSettingSchema = | { type: "boolean"; default?: boolean; description?: string;} | { type: "number" | "integer"; enum?: readonly number[]; minimum?: number; maximum?: number; default?: number; description?: string;} | { type: "string"; enum?: readonly string[]; default?: string; description?: string;} | { type: "array"; items?: FeatureSettingSchema; default?: readonly unknown[]; description?: string;} | { type: "object"; properties?: { [key: string]: FeatureSettingSchema; }; additionalProperties?: boolean; default?: object; description?: string;} | { type?: undefined; enum: readonly (string | number | boolean)[]; default?: string | number | boolean; description?: string;} | { type?: undefined; anyOf: readonly FeatureSettingSchema[]; default?: string | number | boolean; description?: string;};The JSON Schema subset a setting is declared with: type, enum, minimum, maximum, items,
properties, additionalProperties and anyOf. default is required in define.
Union Members#
Type Literal#
{ type: "boolean"; default?: boolean; description?: string;}Type Literal#
{ type: "number" | "integer"; enum?: readonly number[]; minimum?: number; maximum?: number; default?: number; description?: string;}Type Literal#
{ type: "string"; enum?: readonly string[]; default?: string; description?: string;}Type Literal#
{ type: "array"; items?: FeatureSettingSchema; default?: readonly unknown[]; description?: string;}Type Literal#
{ type: "object"; properties?: { [key: string]: FeatureSettingSchema; }; additionalProperties?: boolean; default?: object; description?: string;}Type Literal#
{ type?: undefined; enum: readonly (string | number | boolean)[]; default?: string | number | boolean; description?: string;}Type Literal#
{ type?: undefined; anyOf: readonly FeatureSettingSchema[]; default?: string | number | boolean; description?: string;}| Name | Type | Description |
|---|---|---|
type? |
undefined |
- |
anyOf |
readonly FeatureSettingSchema[] |
A value is valid when it matches one of these, such as a keyword or a number. |
default? |
string |
number |
description? |
string |
- |