@azrico/global 1.3.75 → 1.3.76

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,3 +1,4 @@
1
+ type MaybeFilterAction = Function | string | number;
1
2
  /**
2
3
  * Adds a filter
3
4
  * @param key
@@ -5,7 +6,7 @@
5
6
  * @param priority filters with lower priority are executed first
6
7
  * @returns
7
8
  */
8
- export declare function add_filter(key: string, action: Function | string | number, priority?: number): any;
9
+ export declare function add_filter(key: string, action: MaybeFilterAction, priority?: number): any;
9
10
  /**
10
11
  * `clear_filter` on `key` and then uses `add_filter`
11
12
  * @param key
@@ -13,7 +14,7 @@ export declare function add_filter(key: string, action: Function | string | numb
13
14
  * @param priority filters with lower priority are executed first
14
15
  * @returns
15
16
  */
16
- export declare function set_filter(key: string, action: Function | string | number, priority?: number): any;
17
+ export declare function set_filter(key: string, action: MaybeFilterAction, priority?: number): any;
17
18
  export declare function remove_filter(key: string, action: Function): any;
18
19
  export declare function clear_filter(key: string): any;
19
20
  export declare function clear_all_filters(): any;
@@ -39,3 +40,4 @@ export declare function apply_filter_sync(key: string, initialValue?: any): any;
39
40
  * @returns
40
41
  */
41
42
  export declare function hold_add_filter(key: string, action: (...args: any[]) => any, priority?: number): any;
43
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@azrico/global",
3
- "version": "1.3.75",
3
+ "version": "1.3.76",
4
4
  "description": "Simple global functions and helpers",
5
5
  "author": "Azrideus",
6
6
  "license": "MIT",