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