stremio-addon-sdk icon indicating copy to clipboard operation
stremio-addon-sdk copied to clipboard

Wrong types for ManifestConfig

Open hexdecimal16 opened this issue 1 year ago • 1 comments

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

hexdecimal16 avatar Aug 21 '24 12:08 hexdecimal16

required is most definitely not a string, it's a boolean

jaruba avatar Aug 21 '24 15:08 jaruba

👌

pattycakes2017 avatar Feb 15 '25 09:02 pattycakes2017