GraphReFlyTS

API Reference

jsonCodecFor()

Build a JSON codec using stable object-key ordering.

Import

import { jsonCodecFor } from "@graphrefly/ts";

Signature

function jsonCodecFor(): Codec<T>

Returns

A Codec<T> value.

Example

import { jsonCodecFor } from "@graphrefly/ts";

Source

packages/ts/src/json/codec.ts