luhn-generator
Version:
A generator of numbers that passes the validation of Luhn algorithm or Luhn formula, also known as the 'modulus 10' or 'mod 10' algorithm
10 lines (9 loc) • 402 B
TypeScript
import { Subscriber } from '../Subscriber';
import { Subject } from '../Subject';
/**
* Determines whether the ErrorObserver is closed or stopped or has a
* destination that is closed or stopped - in which case errors will
* need to be reported via a different mechanism.
* @param observer the observer
*/
export declare function canReportError(observer: Subscriber<any> | Subject<any>): boolean;