UNPKG

nani

Version:

Better error handling for Node

12 lines (11 loc) 281 B
/** * Interface for predicate functions on `find` and `filter`. */ export interface ErrorPredicate { /** * Predicate signature. * @param err - Error instance to check. * @returns `true` if `err` matches, `false` otherwise. */ (err: Error): boolean; }