Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/bencodex/mod.ts>DecodingState

An alternative take on implementing Bencodex in TypeScript/JavaScript
Latest
type alias DecodingState
import { type DecodingState } from "https://deno.land/x/bencodex@0.2.2/mod.ts";

Represents the end-state of decoding.

definition: { success: true; read: number; value: T; } | { success: false; read: number; error: E; }