UNPKG

@future-widget-lab/safe-ops

Version:

A set of helper functions for performing operations safely, preventing runtime errors from disrupting your application.

7 lines (6 loc) 179 B
export type ErrorReport<TInput> = { error: Error; item: TInput; index: number; }; export type OnError<TInput> = (error: unknown, item: TInput, index: number) => void;