UNPKG

nani

Version:

Better error handling for Node

18 lines (17 loc) 363 B
/** * Interface for objects yielded by `iterateFull`. */ export interface IterItem { /** * The error instance. */ err: Error; /** * The parent of `err`, if any. `null` otherwise. */ parent: Error | null; /** * `true` if `err` is in an `errors` array on its parent, `false` otherwise. */ inArray: boolean; }