Skip to main content
Deno 2 is finally here 🎉️
Learn more
Latest
interface KvCodec
import { type KvCodec } from "https://deno.land/x/natsws@v1.29.2/src/mod.ts";

An interface for encoding and decoding values before they are stored or returned to the client.

Methods

encode(k: T): T
decode(k: T): T