Skip to content

Latest commit

 

History

History
21 lines (16 loc) · 467 Bytes

File metadata and controls

21 lines (16 loc) · 467 Bytes

Home > tsbuffer > DecodeOutput

DecodeOutput type

Signature:

export type DecodeOutput<T> = {
    isSucc: true;
    value: T;
    errMsg?: undefined;
} | {
    isSucc: false;
    errMsg: string;
    errPhase: "decode" | "validate" | undefined;
    value?: undefined;
};