You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

12 lines
298 B

/// <reference types="node" />
import { EventEmitter } from 'events';
declare class Counter extends EventEmitter {
value: number;
constructor();
increment(): void;
decrement(): void;
isZero(): boolean;
onceZero(fn: (...args: any[]) => void): void;
}
export default Counter;