dphelper 1.9.75 → 1.9.80

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.
@@ -1,30 +0,0 @@
1
- # useObserver
2
-
3
- ## Overview
4
-
5
- This document provides a comprehensive list of all available useObserver functions in the `dpHelper` library along with their descriptions and examples.
6
-
7
- ## Functions
8
-
9
- ### useObserver(()=>{ YOUR CODE }, "state.name")
10
-
11
- - **Description:** Sets up an useObserver to monitor state changes and trigger a callback.
12
- - **Parameters:**
13
- - `stateName` (string): The name of the state to monitor.
14
- - `callBack` (Function): The callback function to run when the state changes.
15
- - `option` (object): Additional options for the useObserver.
16
-
17
- - **Example:**
18
- > The format is really similar to React useEffect
19
-
20
- ```javascript
21
- useObserver(
22
- () => {
23
- console.log('State changed:', newValue);
24
- }, 'state.test'
25
- );
26
- ```
27
-
28
- ## License
29
-
30
- This project is licensed under the Private License.
package/index.d.ts DELETED
@@ -1,22 +0,0 @@
1
- /*!
2
- dphelper
3
- Copyright (c) 2019 Dario Passariello <dariopassariello@gmail.com>
4
- Licensed under MIT License, see
5
- https://dario.passariello.ca
6
- */
7
-
8
- // VENDORS
9
- /// <reference path="./types/jquery.d.ts" />
10
- /// <reference path="./types/idb.d.ts" />
11
-
12
- // BY DARIO PASSARIELLO
13
- /// <reference path="./types/dphelper.d.ts" />
14
- /// <reference path="./types/memorio.d.ts" />
15
- /// <reference path="./types/observer.d.ts" />
16
- /// <reference path="./types/useObserver.d.ts" />
17
- /// <reference path="./types/state.d.ts" />
18
- /// <reference path="./types/session.d.ts" />
19
- /// <reference path="./types/store.d.ts" />
20
- /// <reference path="./types/cache.d.ts" />
21
-
22
-