File tree Expand file tree Collapse file tree 3 files changed +8
-1
lines changed
Expand file tree Collapse file tree 3 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -19,6 +19,10 @@ module.exports = {
1919 name : 'crypto' ,
2020 message : 'Import from crypto.ts' ,
2121 } ,
22+ {
23+ name : 'Error' ,
24+ message : 'Use `ErrUnexpected`' ,
25+ } ,
2226 ] ,
2327 'import/order' : [
2428 'error' ,
Original file line number Diff line number Diff line change 1+ import { ErrUnexpected } from './errors' ;
2+
13export function notNull < T > ( input : T | null | undefined ) : T {
24 /* c8 ignore next 3 */
35 if ( input === null || input === undefined ) {
4- throw new Error ( 'Input was undefined' ) ;
6+ throw new ErrUnexpected ( 'Input was undefined' ) ;
57 }
68 return input ;
79}
Original file line number Diff line number Diff line change 1+ // eslint-disable-next-line no-restricted-globals
12export class SqlCursorPaginationError extends Error {
23 constructor ( name : string , message : string ) {
34 super ( message ) ;
You can’t perform that action at this time.
0 commit comments