UNPKG

@manuth/woltlab-compiler

Version:

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

59 lines (58 loc) 1.27 kB
import { Localization } from "../Globalization/Localization.js"; import { IOptionItemOptions } from "./IOptionItemOptions.js"; import { Option } from "./Option.js"; /** * Represents an item of an option. */ export declare class OptionItem { /** * The name of the item. */ private name; /** * The human-readable name of the item. */ private displayName; /** * The value of the item. */ private value; /** * The option of the item. */ private option; /** * Initializes a new instance of the {@link OptionItem `OptionItem`} class. * * @param option * The option of the item. * * @param options * The options of the item. */ constructor(option: Option, options: IOptionItemOptions); /** * Gets or sets the name of the item. */ get Name(): string; /** * @inheritdoc */ set Name(value: string); /** * Gets the human-readable name of the item. */ get DisplayName(): Localization; /** * Gets the value of the item. */ get Value(): unknown; /** * @inheritdoc */ set Value(value: unknown); /** * Gets the option of the item. */ get Option(): Option; }