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
| Parameter | Type | Description |
|---|---|---|
value | unknown | Unknown value to check or decode. |
Returns
The narrowed, validated value.
Example
import { assertWalFrame } from "@graphrefly/ts/storage";
Source
packages/ts/src/storage/wal.ts