Skip to main content
Module

x/scale/codecs/documented.ts

A TypeScript reference implementation of SCALE transcoding
Go to Latest
File
import { Codec, metadata, withMetadata } from "../common/mod.ts"
export function documented<I, O>(docs: string, inner: Codec<I, O>): Codec<I, O> { return withMetadata( metadata("$.documented", documented, docs, inner) as never, inner, )}