Fixing typo and wrong source map location

This commit is contained in:
Fabian
2019-03-25 20:35:50 -04:00
parent 3e25b10266
commit a5e8f044ed
4 changed files with 4 additions and 5 deletions

View File

@ -1,5 +1,5 @@
export type ObserverCallbackCollect<T> = (data: T[]) => void;
export type ObserverCallback<T> = (ata: T) => void;
export type ObserverCallback<T> = (data: T) => void;
export type ObservableInterface<T> = {
/**
@ -23,7 +23,7 @@ export default class Observable<T = any> {
private subscriber: ObserverCallback<T>[] = [];
private subscriberCollect: ObserverCallbackCollect<T>[] = [];
private events: T[] = [];
private timeout: NodeJS.Timeout | number | undefined = undefined;
private timeout: number | undefined = undefined;
constructor(private collect_intervall: number = 100) { }