Add IBuffer, IBufferSet and fix CircularList type

This commit is contained in:
Daniel Imms
2017-07-16 03:47:15 +03:00
committed by Paris Kasidiaris
parent cb5a452c90
commit 59f75555bc
6 changed files with 41 additions and 17 deletions
+3 -1
View File
@@ -2,12 +2,14 @@
* @license MIT
*/
import { IEventEmitter } from './Interfaces';
interface ListenerType {
(): void;
listener?: () => void;
};
export class EventEmitter {
export class EventEmitter implements IEventEmitter {
private _events: {[type: string]: ListenerType[]};
constructor() {