Comparing version 4.6.0 to 4.6.1
declare module "enmap" { | ||
/** | ||
* A enhanced Map structure with additional utility methods. | ||
* Can be made persistent | ||
*/ | ||
export = Enmap; | ||
type EnmapOptions = { | ||
@@ -16,2 +10,3 @@ name?: string; | ||
pollingInterval?: number; | ||
ensureProps?: boolean; | ||
}; | ||
@@ -53,3 +48,7 @@ | ||
class Enmap<K extends string | number = string | number, V = any> extends AlmostMap<K, V> { | ||
/** | ||
* A enhanced Map structure with additional utility methods. | ||
* Can be made persistent | ||
*/ | ||
export default class Enmap<K extends string | number = string | number, V = any> extends AlmostMap<K, V> { | ||
public readonly cloneLevel: "none" | "shallow" | "deep"; | ||
@@ -66,2 +65,3 @@ public readonly name: string; | ||
public readonly lastSync: Date; | ||
public readonly ensureProps: boolean; | ||
public readonly changedCB: (key: K, oldValue: V | undefined, newValue: V | undefined) => void; | ||
@@ -68,0 +68,0 @@ |
{ | ||
"name": "enmap", | ||
"version": "4.6.0", | ||
"version": "4.6.1", | ||
"description": "A simple database wrapper to make sqlite database interactions much easier for beginners, with additional array helper methods.", | ||
@@ -5,0 +5,0 @@ "types": "index.d.ts", |
154923
2293