ReferenceAPI
DecodeError
Why a preset code could not be read.
How this is generated
Source: lib/preset.ts. Script: scripts/build-reference.mts. Command:
pnpm run generate.
Everything below is copied from the symbol, so a page is improved by improving its doc comment. The API index says why there is a page per symbol and what these pages still do not carry.
DecodeError
Why a preset code could not be read. The five reasons are kept distinct so that the sentence shown to a person can be a specific one.
| Kind | Declared in |
|---|---|
| type | lib/preset.ts |
export type DecodeError =
| "missing-prefix"
| "wrong-length"
| "unknown-version"
| "bad-characters"
| "bad-checksum"