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/package.json +11 -8
- package/CHANGELOG.md +0 -12
- package/CITATION.cff +0 -43
- package/CODEOWNERS +0 -1
- package/CODE_OF_CONDUCT.md +0 -110
- package/CONTRIBUTING.md +0 -110
- package/FUNDING.yml +0 -16
- package/HISTORY.md +0 -1
- package/SECURITY.md +0 -3
- package/SUMMARY.md +0 -22
- package/docs/_config.yml +0 -1
- package/docs/index.md +0 -315
- package/documents/OBSERVER.md +0 -67
- package/documents/STATE.md +0 -67
- package/documents/STORE.md +0 -78
- package/documents/TOOLS.md +0 -614
- package/index.d.ts +0 -20
- package/index.js +0 -1
- package/types/cache.d.ts +0 -27
- package/types/dphelper.d.ts +0 -440
- package/types/idb.d.ts +0 -21
- package/types/jquery.d.ts +0 -20
- package/types/memorio.d.ts +0 -23
- package/types/observer.d.ts +0 -47
- package/types/state.d.ts +0 -71
- package/types/store.d.ts +0 -91
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
|