Press n or j to go to the next uncovered block, b, p or k for the previous block.
1 2 3 4 5 6 7 8 9 10 | 79x 33x 33x | import CustomError from './CustomError'; export default function isCustomError(error: Error): error is CustomError { const customError = error as CustomError; return typeof customError.title !== 'undefined' && typeof customError.data !== 'undefined' && typeof customError.type !== 'undefined'; } |