UNPKG

@future-widget-lab/safe-ops

Version:

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

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