Type alias OptionsConfig<T>

OptionsConfig<T>: {
    [K in keyof T]: {
        description: string;
        required: K extends RequiredKeys<T>
            ? true
            : false;
        type: OptionType | readonly OptionType[];
        validator?(opt): void | Promise<void>;
    }
}

Resolves the type of Backend.options from the options interface

Type Parameters

  • T