UNPKG

@manuth/woltlab-compiler

Version:

A compiler for generating WoltLab-Package `.tar` Archives and other WoltLab-Package Components

38 lines 1.09 kB
import { ACPOptionInstructionCompiler } from "../../../Compilation/PackageSystem/Instructions/ACPOptionInstructionCompiler.js"; import { ACPCategory } from "../../../Options/ControlPanel/ACPCategory.js"; import { OptionInstruction } from "./OptionInstruction.js"; /** * Represents an instruction which provides options for the control-panel. */ export class ACPOptionInstruction extends OptionInstruction { /** * Initializes a new instance of the {@link ACPOptionInstruction `ACPOptionInstruction`} class. * * @param options * The options for the acp-option instruction. */ constructor(options) { super(options, (node, opts) => { return new ACPCategory(node, opts); }); } /** * @inheritdoc */ get Type() { return "option"; } /** * @inheritdoc */ get RootCategory() { return "wcf.acp.option"; } /** * @inheritdoc */ get Compiler() { return new ACPOptionInstructionCompiler(this); } } //# sourceMappingURL=ACPOptionInstruction.js.map