EventJournal
Entry
Signature
declare class Entry extends {
[key: string]: any;
} {
[key: string]: any;
constructor(...args: [props?: {
[key: string]: any;
}, options?: MakeOptions]);
static arrayMsgPack: $Array<any>;
static decodeArray: (self: Constraint) => decodeTo<toType<Constraint>, Constraint, never, never>;
static encodeArray: (self: Constraint) => decodeTo<Constraint, toEncoded<Constraint>, never, never>;
createdAt: Utc;
createdAtMillis: number;
idString: string;
}Signature
declare const EntryId: any;Signature
type EntryId = typeof EntryId.Type;entryIdMillis
Added in v1.0.0
Source
Signature
declare function entryIdMillis(entryId: any): number;EntryIdTypeId
Added in v1.0.0
Source
Signature
declare const EntryIdTypeId: unique symbol;makeEntryId
Added in v1.0.0
Source
Signature
declare function makeEntryId(options: { msecs?: number }): any;RemoteEntry
Added in v1.0.0
Source
Signature
declare class RemoteEntry extends ReadonlySide<
{
readonly entry: typeof Entry;
readonly remoteSequence: Number;
},
"Type"
> {
constructor(
...args: [
props: ReadonlyMakeIn<{
readonly entry: typeof Entry;
readonly remoteSequence: Number;
}>,
options?: MakeOptions,
]
);
}Errors
ErrorTypeId
Added in v1.0.0
Source
Signature
declare const ErrorTypeId: unique symbol;ErrorTypeId type
Added in v1.0.0
Source
Signature
type ErrorTypeId = typeof ErrorTypeId;EventJournalError
Added in v1.0.0
Source
Signature
declare class EventJournalError extends ReadonlySide<
{
[key: string]: Constraint;
[key: number]: Constraint;
[key: symbol]: Constraint;
readonly _tag: tag<"EventJournalError">;
},
"Type"
> {
[key: string]: unknown;
[key: number]: unknown;
[key: symbol]: unknown;
constructor(
...args: [
props: ReadonlyMakeIn<{
[key: string]: Constraint;
[key: number]: Constraint;
[key: symbol]: Constraint;
readonly _tag: tag<"EventJournalError">;
}>,
options?: MakeOptions,
]
);
readonly [ErrorTypeId]: typeof ErrorTypeId;
}Indexed Db
layerIndexedDb
Added in v1.0.0
Source
Signature
declare function layerIndexedDb(options?: {
readonly database?: string;
}): Layer<EventJournal, EventJournalError>;makeIndexedDb
Added in v1.0.0
Source
Signature
declare function makeIndexedDb(options?: {
readonly database?: string;
}): Effect<any, EventJournalError, Scope>;Memory
layerMemory
Added in v1.0.0
Source
Signature
declare const layerMemory: Layer.Layer<EventJournal>;makeMemory
Added in v1.0.0
Source
Signature
declare const makeMemory: Effect.Effect<typeof EventJournal.Service>;Remote
makeRemoteId
Added in v1.0.0
Source
Signature
declare function makeRemoteId(): any;Signature
declare const RemoteId: any;Signature
type RemoteId = typeof RemoteId.Type;RemoteIdTypeId
Added in v1.0.0
Source
Signature
declare const RemoteIdTypeId: unique symbol;