UNPKG

@manuth/generator-wsc-package

Version:

A Generator for WoltLab Suite Core Packages.

56 lines 1.4 kB
import { PackageComponentType } from "../Settings/PackageComponentType.js"; import { TranslationComponent } from "./TranslationComponent.js"; /** * Provides a component for generating error-messages. * * @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 class ErrorMessageComponent extends TranslationComponent { /** * Initializes a new instance of the {@link ErrorMessageComponent `ErrorMessageComponent<TSettings, TOptions, TComponentOptions>`} class. * * @param generator * The generator of the component. */ constructor(generator) { super(generator); } /** * @inheritdoc */ get OutputFileName() { return "errorMessages"; } /** * @inheritdoc */ get ID() { return PackageComponentType.ErrorMessage; } /** * @inheritdoc */ get DisplayName() { return "Error-Messages"; } /** * @inheritdoc * * @param options * The options which have been provided by the user. * * @returns * The name of the instruction-class. */ GetClassName(options) { return "ErrorMessageInstruction"; } } //# sourceMappingURL=ErrorMessageComponent.js.map