Skip to content
PACKAGES

assertWalFrame()

Validate a decoded passive WAL frame without verifying its checksum bytes.

import { assertWalFrame } from "@graphrefly/ts/storage";
function assertWalFrame(value: unknown): WalFrame<T>
ParameterTypeDescription
valueunknownUnknown value to check or decode.

The narrowed, validated value.

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

packages/ts/src/storage/wal.ts