Skip to content
PACKAGES

observeEventFrame()

Create a storage frame from one observe event and mapped payload.

import { observeEventFrame } from "@graphrefly/ts/storage";
function observeEventFrame(
event: ObserveEventLike,
value: T,
opts: { stream?: string } = {},
): ObserveEventFrame<T>
ParameterTypeDescription
eventObserveEventLikeevent value used by the helper.
valueTUnknown value to check or decode.
opts{ stream?: string }Options that configure the helper.

A ObserveEventFrame<T> value.

import { observeEventFrame } from "@graphrefly/ts/storage";

packages/ts/src/storage/observe-event-log.ts