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: T[K]): void | Promise<void>;
    }
}

Resolves the type of Backend.options from the options interface

Type Parameters

  • T