Fixing typo and wrong source map location
This commit is contained in:
parent
3e25b10266
commit
a5e8f044ed
2
package-lock.json
generated
2
package-lock.json
generated
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@hibas123/utils",
|
||||
"version": "1.0.0",
|
||||
"version": "2.0.0",
|
||||
"lockfileVersion": 1,
|
||||
"requires": true,
|
||||
"dependencies": {
|
||||
|
@ -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",
|
||||
|
@ -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) { }
|
||||
|
||||
|
@ -4,7 +4,6 @@
|
||||
"module": "commonjs",
|
||||
"moduleResolution": "node",
|
||||
"outDir": "lib",
|
||||
"sourceRoot": "src",
|
||||
"preserveWatchOutput": true,
|
||||
"declaration": true,
|
||||
"sourceMap": true,
|
||||
|
Loading…
Reference in New Issue
Block a user