Type Alias Event<T, K, I>

Event:
    | { created: CreateEvent<T, K, I>; matchedQueries: number[] }
    | { created: CreateEvent<T, K, I> }
    | { archived: ArchiveEvent<T, I> }

An event is either the creation or archival of a contract.

Type Parameters

  • T extends object
  • K = unknown
  • I extends string = string

T The contract template type.

K The contract key type.

I The contract id type.