Skip to content

EventJournal

19 exports Added in v1.0.0 Source

Entry

Entry

Added in v1.0.0 Source

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;
}

EntryId

Added in v1.0.0 Source

Signature

declare const EntryId: any;

EntryId type

Added in v1.0.0 Source

Signature

type EntryId = typeof EntryId.Type;

Signature

declare function entryIdMillis(entryId: any): number;

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;

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

Signature

declare function layerIndexedDb(options?: {
  readonly database?: string;
}): Layer<EventJournal, EventJournalError>;

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;

RemoteId

Added in v1.0.0 Source

Signature

declare const RemoteId: any;

RemoteId type

Added in v1.0.0 Source

Signature

type RemoteId = typeof RemoteId.Type;

Signature

declare const RemoteIdTypeId: unique symbol;

Tags

EventJournal

Added in v1.0.0 Source

Signature

declare class EventJournal extends any {
  constructor();
}