Convenience wrapper to prepare the DurablePublishKit and Recorder kinds. Note that because prepareRecorder() can only be called once per baggage, this should only be used when there is no need for an EventualRecorderKit. When there is, prepare the kinds separately and pass to the kit definers.

  • Parameters

    • baggage: Baggage
    • marshaller: ERef<{
          fromCapData: FromCapData<unknown>;
          serialize: ToCapData<unknown>;
          toCapData: ToCapData<unknown>;
          unserialize: FromCapData<unknown>;
      }>

    Returns (<T>(storageNode: StorageNode | DataOnly<StorageNode> & RemotableBrand<DataOnly<StorageNode>, StorageNode>, valueShape?: TypedPattern<T>) => RecorderKit<T>)

      • <T>(storageNode, valueShape?): RecorderKit<T>
      • Type Parameters

        • T

        Parameters

        • storageNode: StorageNode | DataOnly<StorageNode> & RemotableBrand<DataOnly<StorageNode>, StorageNode>
        • OptionalvalueShape: TypedPattern<T>

        Returns RecorderKit<T>