UNPKG

woltlab-compiler

Version:

A compiler for WoltLab-Package Archives and WoltLab-Package Components

38 lines 1.21 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const UserOptionInstructionCompiler_1 = require("../../../Compilation/PackageSystem/Instructions/UserOptionInstructionCompiler"); const UserCategory_1 = require("../../../Options/UserPanel/UserCategory"); const OptionInstruction_1 = require("./OptionInstruction"); /** * Represents an instruction which provides options for users. */ class UserOptionInstruction extends OptionInstruction_1.OptionInstruction { /** * Initializes a new instance of the `UserOptionInstruction` class. */ constructor(options) { super(options, (node, opts) => { return new UserCategory_1.UserCategory(node, opts); }); } /** * @inheritdoc */ get Type() { return "userOption"; } /** * @inheritdoc */ get RootCategory() { return "wcf.user.option"; } /** * @inheritdoc */ get Compiler() { return new UserOptionInstructionCompiler_1.UserOptionInstructionCompiler(this); } } exports.UserOptionInstruction = UserOptionInstruction; //# sourceMappingURL=UserOptionInstruction.js.map