assertWalFrame()
Validate a decoded passive WAL frame without verifying its checksum bytes.
Import
Section titled “Import”import { assertWalFrame } from "@graphrefly/ts/storage";Signature
Section titled “Signature”function assertWalFrame(value: unknown): WalFrame<T>Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
value | unknown | Unknown value to check or decode. |
Returns
Section titled “Returns”The narrowed, validated value.
Example
Section titled “Example”import { assertWalFrame } from "@graphrefly/ts/storage";Source
Section titled “Source”packages/ts/src/storage/wal.ts