dphelper 1.9.14 → 1.9.20

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/types/store.d.ts DELETED
@@ -1,91 +0,0 @@
1
- /*!
2
- memorio
3
- Copyright (c) 2025 Dario Passariello <dariopassariello@gmail.com>
4
- Licensed under MIT License, see
5
- https://dario.passariello.ca
6
- */
7
-
8
- /**
9
- * Create states using: store.set("example",{test:"test"})
10
- */
11
- interface _store {
12
-
13
- /**
14
- * Create a new store
15
- *
16
- * @example
17
- * store.set("test","example") // or Array, Object, Number, Functions...
18
- *
19
- * @since memorio 0.0.1
20
- * @param name The String as name to define the store.
21
- * @param param The information taht you want to store (Any).
22
- * @return boolean
23
- */
24
- set: (name: string, value: any) => void
25
-
26
- /**
27
- * Have back the data from a store.
28
- *
29
- * @example
30
- * store.get("test")
31
- *
32
- * @since memorio 0.0.1
33
- * @param name The String as name to define the store.
34
- */
35
- get: (name: string) => any
36
-
37
- /**
38
- * Delete an existing store:
39
- *
40
- * @example
41
- * store.delete("test")
42
- * store.remove("test")
43
- *
44
- * @since memorio 0.0.1
45
- * @param name The String as name to define the store.
46
- * @return boolean
47
- */
48
- delete: (name: string) => boolean | undefined
49
- remove: (name: string) => boolean | undefined
50
-
51
- /**
52
- * Delete all storages
53
- *
54
- * @example
55
- * store.clearAll()
56
- * store.removeAll()
57
- *
58
- * @since memorio 0.0.1
59
- * @return boolean
60
- */
61
- clearAll: () => boolean
62
- removeAll: () => boolean
63
-
64
- /**
65
- * Know how much space you have for total storages
66
- *
67
- * @example
68
- * store.quota()
69
- *
70
- * @since memorio 0.0.1
71
- * @return values
72
- */
73
- quota: () => void
74
-
75
- /**
76
- * Get the size of stores an the total
77
- *
78
- * @example
79
- * store.size()
80
- *
81
- * @since memorio 0.0.1
82
- * @return dimension in kb
83
- */
84
- size: () => number
85
-
86
- // TODO
87
- // readonly increaseQuota: (value: number) => void
88
- }
89
-
90
- declare var store: _store
91
- type store = _store