@freeword/meta
Version:
Meta package for Freeword: exports all core types, constants, and utilities from the src/ directory.
11 lines • 694 B
TypeScript
import type * as TY from '../types.ts';
/**
* Helper function to create bad outcomes with consistent structure
* @param err - The error to wrap
* @param gist - The gist of the error (e.g. 'badPath', 'badInput', 'blankPath')
* @param preambleMsg - A message to prepend to the error message
* @param tmi - Additional error extensions to add to the error
*/
export declare function badOutcome<GT extends string = string>(preambleMsg: string, gist: GT, err?: Error | undefined, tmi?: TY.AnyBag | undefined): TY.BadOutcome<GT>;
export declare function throwable<GT extends string = string>(msg: string, gist: GT, tmi?: TY.AnyBag | undefined): TY.ExtError;
//# sourceMappingURL=Outcome.d.ts.map