GraphReFlyTS

API Reference

assertWalFrame()

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

Import

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

Signature

function assertWalFrame(value: unknown): WalFrame<T>

Parameters

ParameterTypeDescription
valueunknownUnknown value to check or decode.

Returns

The narrowed, validated value.

Example

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

Source

packages/ts/src/storage/wal.ts