See <ComponentProps>
A portion of the configuration object to pass to the LogicBoolSenderComponent
constructor.
type LogicBoolSenderComponentPropsV2 = {
updatedValue?: number | undefined;
changedExternally?: number | undefined;
identifier?: number | undefined;
value?: boolean | undefined;
};
type LogicBoolSenderComponentProps = LogicBoolSenderComponentPropsV2;
updatedValue
(optional, default3171294583
)<number>
changedExternally
(optional, default32
)<number>
identifier
(optional, default0
)<number>
value
(optional, defaultfalse
)<boolean>
Creates a versioned LogicBoolSender
component.
props
<ComponentProps & LogicBoolSenderComponentProps>
Configuration of the component to create.- Returns:
<LogicBoolSenderComponent>
import { LogicBoolSenderComponent } from 'att-string-transcoder';
const componentVersion = 2;
const component = new LogicBoolSenderComponent({ 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:
v2
<number>
import { LogicBoolSenderComponent } from 'att-string-transcoder';
const componentVersion = 2;
const component = new LogicBoolSenderComponent({ version: componentVersion });
const updatedValue = component.updatedValue;
// `updatedValue` is `3171294583`
We're not quite sure what this property does.
- Since:
v2
<number>
import { LogicBoolSenderComponent } from 'att-string-transcoder';
const componentVersion = 2;
const component = new LogicBoolSenderComponent({ version: componentVersion });
const changedExternally = component.changedExternally;
// `changedExternally` is `32`
The identifier of this LogicBoolSender
that a LogicBoolReceiver
connects to.
- Since:
v2
<number>
import { LogicBoolSenderComponent } from 'att-string-transcoder';
const componentVersion = 2;
const component = new LogicBoolSenderComponent({ version: componentVersion });
const identifier = component.identifier;
// `identifier` is `0`
The output value of this LogicBoolSender
that a LogicBoolReceiver
reads as its input.
- Since:
v2
<boolean>
import { LogicBoolSenderComponent } from 'att-string-transcoder';
const componentVersion = 2;
const component = new LogicBoolSenderComponent({ version: componentVersion });
const value = component.value;
// `value` is `false`
See Component.toBinary(version?)