mnotify-ts-sdk
Version:
Modern, zero-dependency TypeScript SDK for mNotify BMS API - Type-safe SMS, contacts, and account management with Railway-Oriented Programming
5 lines (4 loc) • 375 B
TypeScript
import type { Result } from "../types/Result";
import { MNotifyError, type MNotifyErrorContext } from "./MNotifyError";
export declare function annotateResultError<T>(result: Result<T, MNotifyError>, context: MNotifyErrorContext): Result<T, MNotifyError>;
export declare function validationError(message: string, context: MNotifyErrorContext, cause?: unknown): MNotifyError;