IQuorumProposals Interface
Interface for tracking proposals in the Quorum.
To use, import via @fluidframework/driver-definitions/legacy
.
For more information about our API support guarantees, see here.
Signature
export interface IQuorumProposals
Properties
Property | Alerts | Type | Description |
---|---|---|---|
off | Alpha |
IQuorumProposals["on"] | |
once | Alpha |
IQuorumProposals["on"] |
Methods
Method | Alerts | Return Type | Description |
---|---|---|---|
get(key) | Alpha |
unknown | |
has(key) | Alpha |
boolean | |
on(event, listener) | Alpha |
any | |
on(event, listener) | Alpha |
any | |
on(event, listener) | Alpha |
void | |
propose(key, value) | Alpha |
Promise<void> |
Property Details
off
To use, import via @fluidframework/driver-definitions/alpha
.
For more information about our API support guarantees, see here.
Signature
off: IQuorumProposals["on"];
Type: IQuorumProposals["on"]
once
To use, import via @fluidframework/driver-definitions/alpha
.
For more information about our API support guarantees, see here.
Signature
once: IQuorumProposals["on"];
Type: IQuorumProposals["on"]
Method Details
get
To use, import via @fluidframework/driver-definitions/alpha
.
For more information about our API support guarantees, see here.
Signature
get(key: string): unknown;
Parameters
Parameter | Type | Description |
---|---|---|
key | string |
Returns
Return type: unknown
has
To use, import via @fluidframework/driver-definitions/alpha
.
For more information about our API support guarantees, see here.
Signature
has(key: string): boolean;
Parameters
Parameter | Type | Description |
---|---|---|
key | string |
Returns
Return type: boolean
on
To use, import via @fluidframework/driver-definitions/alpha
.
For more information about our API support guarantees, see here.
Signature
on(event: "addProposal", listener: (proposal: ISequencedProposal) => void): any;
Parameters
Parameter | Type | Description |
---|---|---|
event | "addProposal" | |
listener | (proposal: ISequencedProposal) => void |
Returns
Return type: any
on
To use, import via @fluidframework/driver-definitions/alpha
.
For more information about our API support guarantees, see here.
Signature
on(event: "approveProposal", listener: (sequenceNumber: number, key: string, value: unknown, approvalSequenceNumber: number) => void): any;
Parameters
Parameter | Type | Description |
---|---|---|
event | "approveProposal" | |
listener | (sequenceNumber: number, key: string, value: unknown, approvalSequenceNumber: number) => void |
Returns
Return type: any
on
To use, import via @fluidframework/driver-definitions/alpha
.
For more information about our API support guarantees, see here.
Signature
on(event: "error", listener: (message: any) => void): void;
Parameters
Parameter | Type | Description |
---|---|---|
event | "error" | |
listener | (message: any) => void |
propose
To use, import via @fluidframework/driver-definitions/alpha
.
For more information about our API support guarantees, see here.
Signature
propose(key: string, value: unknown): Promise<void>;
Parameters
Parameter | Type | Description |
---|---|---|
key | string | |
value | unknown |
Returns
Return type: Promise<void>