MetaConnectorImplementations
The MetaConnectorImplementations type lists the async functions required to read and write Timestamps.
{
connect?: () => Promise<void>;
disconnect?: () => Promise<void>;
readTimestamp: (address: TimestampAddress<Depth>) => Promise<Timestamp | undefined>;
writeTimestamp: (address: TimestampAddress<Depth>, timestamp: Timestamp) => Promise<void>;
readChildIds: (address: AnyParentAddress<Depth>) => Promise<string[]>;
}| Type | Description | |
|---|---|---|
connect? | () => Promise<void> | The connect callback is invoked when the |
disconnect? | () => Promise<void> | The disconnect callback is invoked when the |
readTimestamp | (address: TimestampAddress<Depth>) => Promise<Timestamp | undefined> | The readTimestamp callback must retrieve the |
writeTimestamp | (address: TimestampAddress<Depth>, timestamp: Timestamp) => Promise<void> | The writeTimestamp callback must persist the provided |
readChildIds | (address: AnyParentAddress<Depth>) => Promise<string[]> | The readChildIds callback must return an array of child ID strings that have timestamps stored under the specified parent address. The structure mirrors the data tree but contains timestamp child IDs instead of |
Since
v0.0.0