UNPKG

woltlab-compiler

Version:

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

48 lines (47 loc) 1.09 kB
import { Localization } from "../Globalization/Localization"; import { IOptionItemOptions } from "./IOptionItemOptions"; import { Option } from "./Option"; /** * 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 `OptionItem` class. * * @param option * The option of the item. */ constructor(option: Option, options: IOptionItemOptions); /** * Gets or sets the name of the item. */ Name: string; /** * Gets the human-readable name of the item. */ readonly DisplayName: Localization; /** * Gets the value of the item. */ Value: any; /** * Gets the option of the item. */ readonly Option: Option; }