See <ComponentProps>
A portion of the configuration object to pass to the LogicIntSenderComponent
constructor.
type LogicIntSenderComponentPropsV1 = {
updatedValue?: number | undefined;
changedExternally?: number | undefined;
identifier?: number | undefined;
value?: number | undefined;
};
type LogicIntSenderComponentProps = LogicIntSenderComponentPropsV1;
updatedValue
(optional, default3171294583
)<number>
changedExternally
(optional, default32
)<number>
identifier
(optional, default0
)<number>
value
(optional, defaultfalse
)<intean>
Creates a versioned LogicIntSender
component.
props
<ComponentProps & LogicIntSenderComponentProps>
Configuration of the component to create.- Returns:
<LogicIntSenderComponent>
import { LogicIntSenderComponent } from 'att-string-transcoder';
const componentVersion = 1;
const component = new LogicIntSenderComponent({ version: componentVersion });
See Component.fromBinary(reader, version)
Note that the following properties are sorted in order of appearance when decoding component binary data.
See Component.hash
See Component.name
We're not quite sure what this property does.
- Since:
v1
<number>
import { LogicIntSenderComponent } from 'att-string-transcoder';
const componentVersion = 1;
const component = new LogicIntSenderComponent({ version: componentVersion });
const updatedValue = component.updatedValue;
// `updatedValue` is `3171294583`
We're not quite sure what this property does.
- Since:
v1
<number>
import { LogicIntSenderComponent } from 'att-string-transcoder';
const componentVersion = 1;
const component = new LogicIntSenderComponent({ version: componentVersion });
const changedExternally = component.changedExternally;
// `changedExternally` is `32`
The identifier of this LogicIntSender
that a LogicIntReceiver
connects to.
- Since:
v1
<number>
import { LogicIntSenderComponent } from 'att-string-transcoder';
const componentVersion = 1;
const component = new LogicIntSenderComponent({ version: componentVersion });
const identifier = component.identifier;
// `identifier` is `0`
The output value of this LogicIntSender
that a LogicIntReceiver
reads as its input.
- Since:
v1
<number>
import { LogicIntSenderComponent } from 'att-string-transcoder';
const componentVersion = 1;
const component = new LogicIntSenderComponent({ version: componentVersion });
const value = component.value;
// `value` is `0`
See Component.toBinary(version?)