UNPKG

@manuth/woltlab-compiler

Version:

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

44 lines 1.19 kB
import { GroupOptionInstructionCompiler } from "../../../Compilation/PackageSystem/Instructions/GroupOptionInstructionCompiler.js"; import { GroupCategory } from "../../../Options/Groups/GroupCategory.js"; import { OptionInstruction } from "./OptionInstruction.js"; /** * Represents an instruction which provides options for groups. */ export class GroupOptionInstruction extends OptionInstruction { /** * Initializes a new instance of the {@link GroupOptionInstruction `GroupOptionInstruction`} class. * * @param options * The options of the group-option instruction. */ constructor(options) { super(options, (node, opts) => { return new GroupCategory(node, opts); }); } /** * @inheritdoc */ get Type() { return "userGroupOption"; } /** * @inheritdoc */ get RootCategory() { return "wcf.acp.group"; } /** * @inheritdoc */ get OptionCategory() { return "option"; } /** * @inheritdoc */ get Compiler() { return new GroupOptionInstructionCompiler(this); } } //# sourceMappingURL=GroupOptionInstruction.js.map