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

2
package-lock.json generated
View File

@ -1,6 +1,6 @@
{
"name": "@hibas123/utils",
"version": "1.0.0",
"version": "2.0.0",
"lockfileVersion": 1,
"requires": true,
"dependencies": {

View File

@ -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",

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) { }

View File

@ -4,7 +4,6 @@
"module": "commonjs",
"moduleResolution": "node",
"outDir": "lib",
"sourceRoot": "src",
"preserveWatchOutput": true,
"declaration": true,
"sourceMap": true,