UNPKG

@manuth/generator-wsc-package

Version:

A Generator for WoltLab Suite Core Packages.

54 lines (53 loc) 1.51 kB
/// <reference types="yeoman-generator" /> import { GeneratorOptions } from "@manuth/extended-yo-generator"; import { QuestionBase } from "@manuth/generator-ts-project"; import { IWoltLabSettings } from "../../Settings/IWoltLabSettings.js"; import { WoltLabSettingKey } from "../../Settings/WoltLabSettingKey.js"; /** * Represents a question for asking for the package-identifier. * * @template TSettings * The type of the generator-settings. * * @template TOptions * The type of the generator-options. */ export declare class WoltLabIdentifierQuestion<TSettings extends IWoltLabSettings, TOptions extends GeneratorOptions> extends QuestionBase<TSettings, TOptions> { /** * @inheritdoc */ name: WoltLabSettingKey; /** * @inheritdoc * * @param answers * The answers provided by the user. * * @returns * The message to show to the user. */ protected Message(answers: TSettings): Promise<string>; /** * @inheritdoc * * @param answers * The answers provided by the user. * * @returns * The default value. */ protected Default(answers: TSettings): Promise<string>; /** * @inheritdoc * * @param input * The answer provided by the user. * * @param answers * The answers provided by the user. * * @returns * The choices the user can choose from. */ protected Validate(input: any, answers: TSettings): Promise<string | boolean>; }