stremio-addon-sdk
stremio-addon-sdk copied to clipboard
Wrong types for ManifestConfig
This is the current ManifestConfig:
/**
* Addon setting.
*/
export interface ManifestConfig {
/**
* A key that will identify the user chosen value.
*/
key: string;
/**
* The type of data that the setting stores.
*/
type: ManifestConfigType;
/**
* The default value. For `type: "boolean"` this can be set to "checked" to default to enabled.
*/
default?: string;
/**
* The title of the setting.
*/
title?: string;
/**
* List of (string) choices for `type: "select"`
*/
options?: string;
/**
* If the value is required or not. Only applies to the following types: "string", "number". (default is `false`)
*/
required?: string;
}
This doesn't respect the documentation here: https://github.com/Stremio/stremio-addon-sdk/blob/master/docs/api/responses/manifest.md#user-data
required is most definitely not a string, it's a boolean
👌