@manuth/generator-wsc-package
Version:
A Generator for WoltLab Suite Core Packages.
68 lines (67 loc) • 2.35 kB
TypeScript
/// <reference types="yeoman-generator" />
import { GeneratorOptions, IFileMapping } from "@manuth/extended-yo-generator";
import { IPathQuestion } from "@manuth/generator-ts-project";
import { FileUploadComponentBase } from "../../../Components/FileUploadComponentBase.js";
import { IApplicationQuestion } from "../../../Components/Inquiry/Prompts/IApplicationQuestion.js";
import { IFileUploadComponentOptions } from "../../../Settings/IFileUploadComponentOptions.js";
import { IWoltLabSettings } from "../../../Settings/IWoltLabSettings.js";
import { WoltLabGenerator } from "../../../WoltLabGenerator.js";
/**
* Provides a component for generating templates.
*
* @template TSettings
* The type of the settings of the generator.
*
* @template TOptions
* The type of the options of the generator.
*
* @template TComponentOptions
* The type of the options of the component.
*/
export declare class TemplateComponent<TSettings extends IWoltLabSettings, TOptions extends GeneratorOptions, TComponentOptions extends IFileUploadComponentOptions> extends FileUploadComponentBase<TSettings, TOptions, TComponentOptions> {
/**
* Initializes a new instance of the {@link TemplateComponent `TemplateComponent<TSettings, TOptions, TComponentOptions>`} class.
*
* @param generator
* The generator of the component.
*/
constructor(generator: WoltLabGenerator<TSettings, TOptions>);
/**
* @inheritdoc
*/
get ID(): string;
/**
* @inheritdoc
*/
get DisplayName(): string;
/**
* @inheritdoc
*/
get FileMappings(): Array<IFileMapping<TSettings, TOptions>>;
/**
* @inheritdoc
*/
protected get DefaultSourceBaseName(): string;
/**
* @inheritdoc
*/
protected get AppQuestion(): IApplicationQuestion<TComponentOptions>;
/**
* @inheritdoc
*/
protected get SourceQuestion(): IPathQuestion<TComponentOptions>;
/**
* Gets the file-mapping for creating the example-template.
*/
protected get TemplateFileMapping(): IFileMapping<TSettings, TOptions>;
/**
* @inheritdoc
*
* @param options
* The options which have been provided by the user.
*
* @returns
* The name of the instruction-class.
*/
protected GetClassName(options: TComponentOptions): string;
}