/ fm / liveswitch / Unit
Class: Unit<T>
fm.liveswitch.Unit
A 1-tuple.
Type parameters
Name |
---|
T |
Table of contents
Constructors
Methods
Constructors
constructor
+ new Unit<T>(item
: T): Unit<T>
Initializes a new instance of the [[fm.liveswitch.unit]] class.
Type parameters:
Name |
---|
T |
Parameters:
Name | Type | Description |
---|---|---|
item |
T | The item to hold. |
Returns: Unit<T>
Defined in: Generated/TypeScript/fm.liveswitch/Unit.ts:13
Methods
getItem
▸ getItem(): T
Gets the item in the tuple.
Returns: T
Defined in: Generated/TypeScript/fm.liveswitch/Unit.ts:39
getTypeString
▸ getTypeString(): string
Returns: string
Defined in: Generated/TypeScript/fm.liveswitch/Unit.ts:9