From a5e8f044ed7ce8cfc172c78ca3d08bbc6b57604a Mon Sep 17 00:00:00 2001 From: Fabian Date: Mon, 25 Mar 2019 20:35:50 -0400 Subject: [PATCH] Fixing typo and wrong source map location --- package-lock.json | 2 +- package.json | 2 +- src/observable.ts | 4 ++-- tsconfig.json | 1 - 4 files changed, 4 insertions(+), 5 deletions(-) diff --git a/package-lock.json b/package-lock.json index 04958c7..a6ff4e0 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "@hibas123/utils", - "version": "1.0.0", + "version": "2.0.0", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index 9904f45..e5f6ace 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@hibas123/utils", - "version": "2.0.0", + "version": "2.0.1", "description": "Different Utilities, that are not worth own packages", "main": "lib/index.js", "types": "lib/index.d.ts", diff --git a/src/observable.ts b/src/observable.ts index 66d9f57..c4ec040 100755 --- a/src/observable.ts +++ b/src/observable.ts @@ -1,5 +1,5 @@ export type ObserverCallbackCollect = (data: T[]) => void; -export type ObserverCallback = (ata: T) => void; +export type ObserverCallback = (data: T) => void; export type ObservableInterface = { /** @@ -23,7 +23,7 @@ export default class Observable { private subscriber: ObserverCallback[] = []; private subscriberCollect: ObserverCallbackCollect[] = []; private events: T[] = []; - private timeout: NodeJS.Timeout | number | undefined = undefined; + private timeout: number | undefined = undefined; constructor(private collect_intervall: number = 100) { } diff --git a/tsconfig.json b/tsconfig.json index c6f203c..b68929a 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -4,7 +4,6 @@ "module": "commonjs", "moduleResolution": "node", "outDir": "lib", - "sourceRoot": "src", "preserveWatchOutput": true, "declaration": true, "sourceMap": true,