Type Alias DetectorFunction

DetectorFunction: ((err: unknown) => boolean)

Type for a detector function that checks if an error matches certain criteria.

Type declaration

    • (err): boolean
    • Parameters

      • err: unknown

        The error to check.

      Returns boolean

      True if the error matches the criteria, false otherwise.