Skip to main content
Deno 2 is finally here 🎉️
Learn more
Go to Latest
interface KvCodec
import { type KvCodec } from "https://deno.land/x/natsws@v1.28.0/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