UNPKG

@manuth/woltlab-compiler

Version:

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

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