@trackunit/shared-utils 1.6.31 → 1.6.35
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 +3 -3
- package/src/filter.d.ts +10 -1
- package/index.esm.d.ts +0 -1
- /package/{index.cjs.d.ts → index.d.ts} +0 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@trackunit/shared-utils",
|
|
3
|
-
"version": "1.6.
|
|
3
|
+
"version": "1.6.35",
|
|
4
4
|
"repository": "https://github.com/Trackunit/manager",
|
|
5
5
|
"engines": {
|
|
6
6
|
"node": ">=22.x"
|
|
@@ -8,9 +8,9 @@
|
|
|
8
8
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
9
9
|
"dependencies": {
|
|
10
10
|
"uuid": "^11.1.0",
|
|
11
|
-
"@trackunit/react-test-setup": "1.1.
|
|
11
|
+
"@trackunit/react-test-setup": "1.1.35"
|
|
12
12
|
},
|
|
13
13
|
"module": "./index.esm.js",
|
|
14
14
|
"main": "./index.cjs.js",
|
|
15
|
-
"types": "./index.
|
|
15
|
+
"types": "./index.d.ts"
|
|
16
16
|
}
|
package/src/filter.d.ts
CHANGED
|
@@ -18,4 +18,13 @@ export declare function filterByMultiple<T>(array: Array<T> | null | undefined,
|
|
|
18
18
|
* All terms must have at least one match
|
|
19
19
|
* The terms can match the same property multiple times
|
|
20
20
|
*/
|
|
21
|
-
export declare const fuzzySearch: <T>(
|
|
21
|
+
export declare const fuzzySearch: <T>(
|
|
22
|
+
/** The elements that should be filtered */
|
|
23
|
+
elementsToFilter: Array<T>,
|
|
24
|
+
/**
|
|
25
|
+
* A function to run on each element
|
|
26
|
+
* to get an array of strings which should be matched
|
|
27
|
+
*/
|
|
28
|
+
filterableProps: (element: T) => Array<string>,
|
|
29
|
+
/** A string of the search to match against the element props*/
|
|
30
|
+
searchTerm: string) => Array<T>;
|
package/index.esm.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./src/index";
|
|
File without changes
|