@manuth/generator-wsc-package
Version:
A Generator for WoltLab Suite Core Packages.
37 lines • 1.18 kB
JavaScript
import { printNode, ts } from "ts-morph";
import { FileInstructionMapping } from "../../../FileMappings/FileInstructionMapping.js";
/**
* Provides the functionality to generate emoji instruction files.
*
* @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 EmojiInstructionFileMapping extends FileInstructionMapping {
/**
* Initializes a new instance of the {@link EmojiInstructionFileMapping `EmojiInstructionFileMapping<TSettings, TOptions, TComponentOptions>`} class.
*
* @param component
* The component to create an instruction-file for.
*/
constructor(component) {
super(component);
}
/**
* @inheritdoc
*/
get InstructionOptions() {
let options = super.InstructionOptions;
options.addPropertyAssignment({
name: "Emojis",
initializer: printNode(ts.factory.createArrayLiteralExpression())
});
return options;
}
}
//# sourceMappingURL=EmojiInstructionFileMapping.js.map