public export class PendingError extends Error { public __prescriptPending = true ; constructor ( ) { super ( '[pending]' ) ; this . name = 'PendingError' ; } } param e public export function isPendingError ( e ) { return ! ! ( e && e . __prescriptPending ) ; }