@fluixi/utils 1.0.0-alpha.100
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/LICENSE +21 -0
- package/README.md +68 -0
- package/dist/index.cjs +2858 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +1 -0
- package/dist/index.mjs +2838 -0
- package/dist/lib/array/advanced.cjs +2227 -0
- package/dist/lib/array/advanced.d.ts +1116 -0
- package/dist/lib/array/advanced.d.ts.map +1 -0
- package/dist/lib/array/advanced.js +2429 -0
- package/dist/lib/array/advanced.mjs +2204 -0
- package/dist/lib/array/array.cjs +57 -0
- package/dist/lib/array/array.d.ts +6 -0
- package/dist/lib/array/array.d.ts.map +1 -0
- package/dist/lib/array/array.js +31 -0
- package/dist/lib/array/array.mjs +36 -0
- package/dist/lib/array/index.cjs +2344 -0
- package/dist/lib/array/index.d.ts +4 -0
- package/dist/lib/array/index.d.ts.map +1 -0
- package/dist/lib/array/index.js +3 -0
- package/dist/lib/array/index.mjs +2322 -0
- package/dist/lib/array/utils.cjs +103 -0
- package/dist/lib/array/utils.d.ts +100 -0
- package/dist/lib/array/utils.d.ts.map +1 -0
- package/dist/lib/array/utils.js +165 -0
- package/dist/lib/array/utils.mjs +82 -0
- package/dist/lib/color/color.cjs +2190 -0
- package/dist/lib/color/color.d.ts +366 -0
- package/dist/lib/color/color.d.ts.map +1 -0
- package/dist/lib/color/color.js +722 -0
- package/dist/lib/color/color.mjs +2167 -0
- package/dist/lib/color/constants.cjs +380 -0
- package/dist/lib/color/constants.d.ts +361 -0
- package/dist/lib/color/constants.d.ts.map +1 -0
- package/dist/lib/color/constants.js +358 -0
- package/dist/lib/color/constants.mjs +359 -0
- package/dist/lib/color/conversions.cjs +629 -0
- package/dist/lib/color/conversions.d.ts +166 -0
- package/dist/lib/color/conversions.d.ts.map +1 -0
- package/dist/lib/color/conversions.js +766 -0
- package/dist/lib/color/conversions.mjs +608 -0
- package/dist/lib/color/helpers.cjs +2534 -0
- package/dist/lib/color/helpers.d.ts +75 -0
- package/dist/lib/color/helpers.d.ts.map +1 -0
- package/dist/lib/color/helpers.js +419 -0
- package/dist/lib/color/helpers.mjs +2511 -0
- package/dist/lib/color/index.cjs +2641 -0
- package/dist/lib/color/index.d.ts +12 -0
- package/dist/lib/color/index.d.ts.map +1 -0
- package/dist/lib/color/index.js +15 -0
- package/dist/lib/color/index.mjs +2619 -0
- package/dist/lib/color/types.cjs +18 -0
- package/dist/lib/color/types.d.ts +179 -0
- package/dist/lib/color/types.d.ts.map +1 -0
- package/dist/lib/color/types.js +1 -0
- package/dist/lib/color/types.mjs +0 -0
- package/dist/lib/color/utils.cjs +962 -0
- package/dist/lib/color/utils.d.ts +199 -0
- package/dist/lib/color/utils.d.ts.map +1 -0
- package/dist/lib/color/utils.js +858 -0
- package/dist/lib/color/utils.mjs +939 -0
- package/dist/lib/compare/comparators.cjs +171 -0
- package/dist/lib/compare/comparators.d.ts +65 -0
- package/dist/lib/compare/comparators.d.ts.map +1 -0
- package/dist/lib/compare/comparators.js +210 -0
- package/dist/lib/compare/comparators.mjs +150 -0
- package/dist/lib/compare/index.cjs +172 -0
- package/dist/lib/compare/index.d.ts +2 -0
- package/dist/lib/compare/index.d.ts.map +1 -0
- package/dist/lib/compare/index.js +1 -0
- package/dist/lib/compare/index.mjs +152 -0
- package/dist/lib/cookie/codec.cjs +72 -0
- package/dist/lib/cookie/codec.d.ts +22 -0
- package/dist/lib/cookie/codec.d.ts.map +1 -0
- package/dist/lib/cookie/codec.js +67 -0
- package/dist/lib/cookie/codec.mjs +51 -0
- package/dist/lib/cookie/index.cjs +75 -0
- package/dist/lib/cookie/index.d.ts +2 -0
- package/dist/lib/cookie/index.d.ts.map +1 -0
- package/dist/lib/cookie/index.js +1 -0
- package/dist/lib/cookie/index.mjs +53 -0
- package/dist/lib/crypto/hash.cjs +83 -0
- package/dist/lib/crypto/hash.d.ts +6 -0
- package/dist/lib/crypto/hash.d.ts.map +1 -0
- package/dist/lib/crypto/hash.js +53 -0
- package/dist/lib/crypto/hash.mjs +62 -0
- package/dist/lib/crypto/index.cjs +85 -0
- package/dist/lib/crypto/index.d.ts +2 -0
- package/dist/lib/crypto/index.d.ts.map +1 -0
- package/dist/lib/crypto/index.js +1 -0
- package/dist/lib/crypto/index.mjs +62 -0
- package/dist/lib/dom/events.cjs +40 -0
- package/dist/lib/dom/events.d.ts +159 -0
- package/dist/lib/dom/events.d.ts.map +1 -0
- package/dist/lib/dom/events.js +50 -0
- package/dist/lib/dom/events.mjs +19 -0
- package/dist/lib/dom/index.cjs +78 -0
- package/dist/lib/dom/index.d.ts +3 -0
- package/dist/lib/dom/index.d.ts.map +1 -0
- package/dist/lib/dom/index.js +2 -0
- package/dist/lib/dom/index.mjs +56 -0
- package/dist/lib/dom/utils.cjs +57 -0
- package/dist/lib/dom/utils.d.ts +6 -0
- package/dist/lib/dom/utils.d.ts.map +1 -0
- package/dist/lib/dom/utils.js +37 -0
- package/dist/lib/dom/utils.mjs +36 -0
- package/dist/lib/functions/functions.cjs +366 -0
- package/dist/lib/functions/functions.d.ts +329 -0
- package/dist/lib/functions/functions.d.ts.map +1 -0
- package/dist/lib/functions/functions.js +585 -0
- package/dist/lib/functions/functions.mjs +345 -0
- package/dist/lib/functions/index.cjs +369 -0
- package/dist/lib/functions/index.d.ts +3 -0
- package/dist/lib/functions/index.d.ts.map +1 -0
- package/dist/lib/functions/index.js +1 -0
- package/dist/lib/functions/index.mjs +347 -0
- package/dist/lib/functions/types.cjs +18 -0
- package/dist/lib/functions/types.d.ts +2 -0
- package/dist/lib/functions/types.d.ts.map +1 -0
- package/dist/lib/functions/types.js +1 -0
- package/dist/lib/functions/types.mjs +0 -0
- package/dist/lib/helpers.cjs +78 -0
- package/dist/lib/helpers.d.ts +13 -0
- package/dist/lib/helpers.d.ts.map +1 -0
- package/dist/lib/helpers.js +66 -0
- package/dist/lib/helpers.mjs +59 -0
- package/dist/lib/index.cjs +2857 -0
- package/dist/lib/index.d.ts +6 -0
- package/dist/lib/index.d.ts.map +1 -0
- package/dist/lib/index.js +8 -0
- package/dist/lib/index.mjs +2836 -0
- package/dist/lib/maths/constants.cjs +70 -0
- package/dist/lib/maths/constants.d.ts +84 -0
- package/dist/lib/maths/constants.d.ts.map +1 -0
- package/dist/lib/maths/constants.js +79 -0
- package/dist/lib/maths/constants.mjs +50 -0
- package/dist/lib/maths/fn/advanced.cjs +231 -0
- package/dist/lib/maths/fn/advanced.d.ts +149 -0
- package/dist/lib/maths/fn/advanced.d.ts.map +1 -0
- package/dist/lib/maths/fn/advanced.js +264 -0
- package/dist/lib/maths/fn/advanced.mjs +208 -0
- package/dist/lib/maths/fn/basic.cjs +212 -0
- package/dist/lib/maths/fn/basic.d.ts +182 -0
- package/dist/lib/maths/fn/basic.d.ts.map +1 -0
- package/dist/lib/maths/fn/basic.js +343 -0
- package/dist/lib/maths/fn/basic.mjs +191 -0
- package/dist/lib/maths/fn/complex.cjs +268 -0
- package/dist/lib/maths/fn/complex.d.ts +153 -0
- package/dist/lib/maths/fn/complex.d.ts.map +1 -0
- package/dist/lib/maths/fn/complex.js +383 -0
- package/dist/lib/maths/fn/complex.mjs +247 -0
- package/dist/lib/maths/fn/index.cjs +877 -0
- package/dist/lib/maths/fn/index.d.ts +10 -0
- package/dist/lib/maths/fn/index.d.ts.map +1 -0
- package/dist/lib/maths/fn/index.js +9 -0
- package/dist/lib/maths/fn/index.mjs +855 -0
- package/dist/lib/maths/fn/trigo.cjs +179 -0
- package/dist/lib/maths/fn/trigo.d.ts +147 -0
- package/dist/lib/maths/fn/trigo.d.ts.map +1 -0
- package/dist/lib/maths/fn/trigo.js +227 -0
- package/dist/lib/maths/fn/trigo.mjs +156 -0
- package/dist/lib/maths/fn/vector.cjs +728 -0
- package/dist/lib/maths/fn/vector.d.ts +512 -0
- package/dist/lib/maths/fn/vector.d.ts.map +1 -0
- package/dist/lib/maths/fn/vector.js +1136 -0
- package/dist/lib/maths/fn/vector.mjs +707 -0
- package/dist/lib/maths/formatter.cjs +61 -0
- package/dist/lib/maths/formatter.d.ts +35 -0
- package/dist/lib/maths/formatter.d.ts.map +1 -0
- package/dist/lib/maths/formatter.js +56 -0
- package/dist/lib/maths/formatter.mjs +40 -0
- package/dist/lib/maths/guards.cjs +164 -0
- package/dist/lib/maths/guards.d.ts +166 -0
- package/dist/lib/maths/guards.d.ts.map +1 -0
- package/dist/lib/maths/guards.js +315 -0
- package/dist/lib/maths/guards.mjs +144 -0
- package/dist/lib/maths/index.cjs +1152 -0
- package/dist/lib/maths/index.d.ts +24 -0
- package/dist/lib/maths/index.d.ts.map +1 -0
- package/dist/lib/maths/index.js +29 -0
- package/dist/lib/maths/index.mjs +1130 -0
- package/dist/lib/maths/parser.cjs +75 -0
- package/dist/lib/maths/parser.d.ts +20 -0
- package/dist/lib/maths/parser.d.ts.map +1 -0
- package/dist/lib/maths/parser.js +78 -0
- package/dist/lib/maths/parser.mjs +54 -0
- package/dist/lib/maths/random.cjs +49 -0
- package/dist/lib/maths/random.d.ts +27 -0
- package/dist/lib/maths/random.d.ts.map +1 -0
- package/dist/lib/maths/random.js +49 -0
- package/dist/lib/maths/random.mjs +28 -0
- package/dist/lib/maths/types/advanced.cjs +18 -0
- package/dist/lib/maths/types/advanced.d.ts +357 -0
- package/dist/lib/maths/types/advanced.d.ts.map +1 -0
- package/dist/lib/maths/types/advanced.js +5 -0
- package/dist/lib/maths/types/advanced.mjs +0 -0
- package/dist/lib/maths/types/basic.cjs +18 -0
- package/dist/lib/maths/types/basic.d.ts +95 -0
- package/dist/lib/maths/types/basic.d.ts.map +1 -0
- package/dist/lib/maths/types/basic.js +5 -0
- package/dist/lib/maths/types/basic.mjs +0 -0
- package/dist/lib/maths/types/index.cjs +19 -0
- package/dist/lib/maths/types/index.d.ts +4 -0
- package/dist/lib/maths/types/index.d.ts.map +1 -0
- package/dist/lib/maths/types/index.js +3 -0
- package/dist/lib/maths/types/index.mjs +1 -0
- package/dist/lib/maths/types/negative.cjs +18 -0
- package/dist/lib/maths/types/negative.d.ts +51 -0
- package/dist/lib/maths/types/negative.d.ts.map +1 -0
- package/dist/lib/maths/types/negative.js +5 -0
- package/dist/lib/maths/types/negative.mjs +0 -0
- package/dist/lib/maths/types/operations.cjs +18 -0
- package/dist/lib/maths/types/operations.d.ts +188 -0
- package/dist/lib/maths/types/operations.d.ts.map +1 -0
- package/dist/lib/maths/types/operations.js +6 -0
- package/dist/lib/maths/types/operations.mjs +0 -0
- package/dist/lib/object/clone.cjs +88 -0
- package/dist/lib/object/clone.d.ts +46 -0
- package/dist/lib/object/clone.d.ts.map +1 -0
- package/dist/lib/object/clone.js +104 -0
- package/dist/lib/object/clone.mjs +65 -0
- package/dist/lib/object/diff.cjs +573 -0
- package/dist/lib/object/diff.d.ts +203 -0
- package/dist/lib/object/diff.d.ts.map +1 -0
- package/dist/lib/object/diff.js +805 -0
- package/dist/lib/object/diff.mjs +550 -0
- package/dist/lib/object/getter-setter.cjs +2351 -0
- package/dist/lib/object/getter-setter.d.ts +361 -0
- package/dist/lib/object/getter-setter.d.ts.map +1 -0
- package/dist/lib/object/getter-setter.js +1771 -0
- package/dist/lib/object/getter-setter.mjs +2330 -0
- package/dist/lib/object/index.cjs +3956 -0
- package/dist/lib/object/index.d.ts +13 -0
- package/dist/lib/object/index.d.ts.map +1 -0
- package/dist/lib/object/index.js +12 -0
- package/dist/lib/object/index.mjs +3936 -0
- package/dist/lib/object/merge.cjs +1029 -0
- package/dist/lib/object/merge.d.ts +93 -0
- package/dist/lib/object/merge.d.ts.map +1 -0
- package/dist/lib/object/merge.js +474 -0
- package/dist/lib/object/merge.mjs +1006 -0
- package/dist/lib/object/object.cjs +280 -0
- package/dist/lib/object/object.d.ts +128 -0
- package/dist/lib/object/object.d.ts.map +1 -0
- package/dist/lib/object/object.js +432 -0
- package/dist/lib/object/object.mjs +257 -0
- package/dist/lib/object/omit.cjs +2022 -0
- package/dist/lib/object/omit.d.ts +351 -0
- package/dist/lib/object/omit.d.ts.map +1 -0
- package/dist/lib/object/omit.js +656 -0
- package/dist/lib/object/omit.mjs +1999 -0
- package/dist/lib/object/reconcile.cjs +126 -0
- package/dist/lib/object/reconcile.d.ts +7 -0
- package/dist/lib/object/reconcile.d.ts.map +1 -0
- package/dist/lib/object/reconcile.js +122 -0
- package/dist/lib/object/reconcile.mjs +105 -0
- package/dist/lib/object/selector.cjs +303 -0
- package/dist/lib/object/selector.d.ts +50 -0
- package/dist/lib/object/selector.d.ts.map +1 -0
- package/dist/lib/object/selector.js +371 -0
- package/dist/lib/object/selector.mjs +282 -0
- package/dist/lib/object/sort.cjs +209 -0
- package/dist/lib/object/sort.d.ts +149 -0
- package/dist/lib/object/sort.d.ts.map +1 -0
- package/dist/lib/object/sort.js +298 -0
- package/dist/lib/object/sort.mjs +186 -0
- package/dist/lib/object/transform.cjs +2211 -0
- package/dist/lib/object/transform.d.ts +620 -0
- package/dist/lib/object/transform.d.ts.map +1 -0
- package/dist/lib/object/transform.js +1058 -0
- package/dist/lib/object/transform.mjs +2190 -0
- package/dist/lib/object/types.cjs +18 -0
- package/dist/lib/object/types.d.ts +250 -0
- package/dist/lib/object/types.d.ts.map +1 -0
- package/dist/lib/object/types.js +1 -0
- package/dist/lib/object/types.mjs +0 -0
- package/dist/lib/object/utils.cjs +326 -0
- package/dist/lib/object/utils.d.ts +165 -0
- package/dist/lib/object/utils.d.ts.map +1 -0
- package/dist/lib/object/utils.js +444 -0
- package/dist/lib/object/utils.mjs +305 -0
- package/dist/lib/primitive/boolean/boolean.cjs +407 -0
- package/dist/lib/primitive/boolean/boolean.d.ts +276 -0
- package/dist/lib/primitive/boolean/boolean.d.ts.map +1 -0
- package/dist/lib/primitive/boolean/boolean.js +615 -0
- package/dist/lib/primitive/boolean/boolean.mjs +386 -0
- package/dist/lib/primitive/boolean/index.cjs +382 -0
- package/dist/lib/primitive/boolean/index.d.ts +3 -0
- package/dist/lib/primitive/boolean/index.d.ts.map +1 -0
- package/dist/lib/primitive/boolean/index.js +2 -0
- package/dist/lib/primitive/boolean/index.mjs +359 -0
- package/dist/lib/primitive/boolean/types.cjs +18 -0
- package/dist/lib/primitive/boolean/types.d.ts +14 -0
- package/dist/lib/primitive/boolean/types.d.ts.map +1 -0
- package/dist/lib/primitive/boolean/types.js +1 -0
- package/dist/lib/primitive/boolean/types.mjs +0 -0
- package/dist/lib/primitive/date/date.cjs +1126 -0
- package/dist/lib/primitive/date/date.d.ts +641 -0
- package/dist/lib/primitive/date/date.d.ts.map +1 -0
- package/dist/lib/primitive/date/date.js +1998 -0
- package/dist/lib/primitive/date/date.mjs +1105 -0
- package/dist/lib/primitive/date/index.cjs +1128 -0
- package/dist/lib/primitive/date/index.d.ts +3 -0
- package/dist/lib/primitive/date/index.d.ts.map +1 -0
- package/dist/lib/primitive/date/index.js +2 -0
- package/dist/lib/primitive/date/index.mjs +1105 -0
- package/dist/lib/primitive/date/types.cjs +18 -0
- package/dist/lib/primitive/date/types.d.ts +205 -0
- package/dist/lib/primitive/date/types.d.ts.map +1 -0
- package/dist/lib/primitive/date/types.js +7 -0
- package/dist/lib/primitive/date/types.mjs +0 -0
- package/dist/lib/primitive/index.cjs +2338 -0
- package/dist/lib/primitive/index.d.ts +5 -0
- package/dist/lib/primitive/index.d.ts.map +1 -0
- package/dist/lib/primitive/index.js +4 -0
- package/dist/lib/primitive/index.mjs +2316 -0
- package/dist/lib/primitive/string/index.cjs +875 -0
- package/dist/lib/primitive/string/index.d.ts +3 -0
- package/dist/lib/primitive/string/index.d.ts.map +1 -0
- package/dist/lib/primitive/string/index.js +2 -0
- package/dist/lib/primitive/string/index.mjs +852 -0
- package/dist/lib/primitive/string/parser-2.cjs +543 -0
- package/dist/lib/primitive/string/parser-2.d.ts +17 -0
- package/dist/lib/primitive/string/parser-2.d.ts.map +1 -0
- package/dist/lib/primitive/string/parser-2.js +656 -0
- package/dist/lib/primitive/string/parser-2.mjs +522 -0
- package/dist/lib/primitive/string/parser.cjs +236 -0
- package/dist/lib/primitive/string/parser.d.ts +9 -0
- package/dist/lib/primitive/string/parser.d.ts.map +1 -0
- package/dist/lib/primitive/string/parser.js +775 -0
- package/dist/lib/primitive/string/parser.mjs +215 -0
- package/dist/lib/primitive/string/string.cjs +926 -0
- package/dist/lib/primitive/string/string.d.ts +535 -0
- package/dist/lib/primitive/string/string.d.ts.map +1 -0
- package/dist/lib/primitive/string/string.js +1301 -0
- package/dist/lib/primitive/string/string.mjs +903 -0
- package/dist/lib/primitive/string/types.cjs +18 -0
- package/dist/lib/primitive/string/types.d.ts +318 -0
- package/dist/lib/primitive/string/types.d.ts.map +1 -0
- package/dist/lib/primitive/string/types.js +5 -0
- package/dist/lib/primitive/string/types.mjs +0 -0
- package/dist/lib/primitive/types.cjs +18 -0
- package/dist/lib/primitive/types.d.ts +27 -0
- package/dist/lib/primitive/types.d.ts.map +1 -0
- package/dist/lib/primitive/types.js +1 -0
- package/dist/lib/primitive/types.mjs +0 -0
- package/dist/lib/url/index.cjs +327 -0
- package/dist/lib/url/index.d.ts +3 -0
- package/dist/lib/url/index.d.ts.map +1 -0
- package/dist/lib/url/index.js +2 -0
- package/dist/lib/url/index.mjs +304 -0
- package/dist/lib/url/parser.cjs +325 -0
- package/dist/lib/url/parser.d.ts +216 -0
- package/dist/lib/url/parser.d.ts.map +1 -0
- package/dist/lib/url/parser.js +488 -0
- package/dist/lib/url/parser.mjs +304 -0
- package/dist/lib/url/types.cjs +18 -0
- package/dist/lib/url/types.d.ts +18 -0
- package/dist/lib/url/types.d.ts.map +1 -0
- package/dist/lib/url/types.js +1 -0
- package/dist/lib/url/types.mjs +0 -0
- package/dist/tsconfig.lib.tsbuildinfo +1 -0
- package/package.json +127 -0
|
@@ -0,0 +1,329 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Check if value is a function
|
|
3
|
+
* @param v - The value to check
|
|
4
|
+
* @returns True if the value is a function, false otherwise
|
|
5
|
+
*/
|
|
6
|
+
export declare function isFunction<T extends Function = Function>(v: unknown): v is T;
|
|
7
|
+
/**
|
|
8
|
+
* Check if value is a Promise
|
|
9
|
+
* @param v - The value to check
|
|
10
|
+
* @returns True if the value is a Promise, false otherwise
|
|
11
|
+
*/
|
|
12
|
+
export declare function isPromise<T = any>(v: unknown): v is Promise<T>;
|
|
13
|
+
/**
|
|
14
|
+
* Check if value is an async function
|
|
15
|
+
* @param v - The value to check
|
|
16
|
+
* @returns True if the value is an async function, false otherwise
|
|
17
|
+
*/
|
|
18
|
+
export declare function isAsyncFunction<T extends (...args: any) => Promise<any> = any>(v: unknown): v is T;
|
|
19
|
+
/**
|
|
20
|
+
* Memoizes a function, caching results based on arguments
|
|
21
|
+
* @param fn - Function to memoize
|
|
22
|
+
* @param resolver - Optional function to generate cache key
|
|
23
|
+
* @returns Memoized function with cache property
|
|
24
|
+
* @example
|
|
25
|
+
* const expensive = memoize((n: number) => {
|
|
26
|
+
* return n * n;
|
|
27
|
+
* });
|
|
28
|
+
* expensive(5); // Computed
|
|
29
|
+
* expensive(5); // Cached
|
|
30
|
+
*/
|
|
31
|
+
export declare function memoize<T extends (...args: any[]) => any>(fn: T, resolver?: (...args: Parameters<T>) => string): T & {
|
|
32
|
+
cache: Map<string, ReturnType<T>>;
|
|
33
|
+
};
|
|
34
|
+
/**
|
|
35
|
+
* Creates a debounced function that delays invoking func until after wait milliseconds
|
|
36
|
+
* @param fn - Function to debounce
|
|
37
|
+
* @param wait - Milliseconds to wait
|
|
38
|
+
* @param options - Debounce options
|
|
39
|
+
* @returns Debounced function with cancel method
|
|
40
|
+
* @example
|
|
41
|
+
* const debounced = debounce(() => console.log('Search'), 300);
|
|
42
|
+
* debounced(); // Will execute after 300ms of inactivity
|
|
43
|
+
*/
|
|
44
|
+
export declare function debounce<T extends (...args: any[]) => any>(fn: T, wait: number, options?: {
|
|
45
|
+
leading?: boolean;
|
|
46
|
+
trailing?: boolean;
|
|
47
|
+
maxWait?: number;
|
|
48
|
+
}): T & {
|
|
49
|
+
cancel: () => void;
|
|
50
|
+
flush: () => void;
|
|
51
|
+
pending: () => boolean;
|
|
52
|
+
};
|
|
53
|
+
/**
|
|
54
|
+
* Creates a throttled function that only invokes func at most once per every wait milliseconds
|
|
55
|
+
* @param fn - Function to throttle
|
|
56
|
+
* @param wait - Milliseconds to wait
|
|
57
|
+
* @param options - Throttle options
|
|
58
|
+
* @returns Throttled function with cancel method
|
|
59
|
+
* @example
|
|
60
|
+
* const throttled = throttle(() => console.log('Scroll'), 100);
|
|
61
|
+
* window.addEventListener('scroll', throttled);
|
|
62
|
+
*/
|
|
63
|
+
export declare function throttle<T extends (...args: any[]) => any>(fn: T, wait: number, options?: {
|
|
64
|
+
leading?: boolean;
|
|
65
|
+
trailing?: boolean;
|
|
66
|
+
}): T & {
|
|
67
|
+
cancel: () => void;
|
|
68
|
+
flush: () => void;
|
|
69
|
+
};
|
|
70
|
+
/**
|
|
71
|
+
* Creates a function that is restricted to invoking func once
|
|
72
|
+
* @param fn - Function to restrict
|
|
73
|
+
* @returns Function that invokes func once
|
|
74
|
+
* @example
|
|
75
|
+
* const initialize = once(() => console.log('Initialized'));
|
|
76
|
+
* initialize(); // Logs 'Initialized'
|
|
77
|
+
* initialize(); // Does nothing
|
|
78
|
+
*/
|
|
79
|
+
export declare function once<T extends (...args: any[]) => any>(fn: T): T & {
|
|
80
|
+
called: boolean;
|
|
81
|
+
};
|
|
82
|
+
/**
|
|
83
|
+
* Creates a function that invokes func with arguments arranged according to the specified indexes
|
|
84
|
+
* @param fn - Function to rearrange arguments for
|
|
85
|
+
* @param indexes - Argument indexes
|
|
86
|
+
* @returns New function with rearranged arguments
|
|
87
|
+
* @example
|
|
88
|
+
* const rearg = rearg((a, b, c) => [a, b, c], [2, 0, 1]);
|
|
89
|
+
* rearg('a', 'b', 'c'); // ['c', 'a', 'b']
|
|
90
|
+
*/
|
|
91
|
+
export declare function rearg<T extends (...args: any[]) => any>(fn: T, ...indexes: number[]): (...args: any[]) => ReturnType<T>;
|
|
92
|
+
/**
|
|
93
|
+
* Curries a function
|
|
94
|
+
* @param fn - Function to curry
|
|
95
|
+
* @param arity - Number of arguments (defaults to fn.length)
|
|
96
|
+
* @returns Curried function
|
|
97
|
+
* @example
|
|
98
|
+
* const add = (a: number, b: number, c: number) => a + b + c;
|
|
99
|
+
* const curried = curry(add);
|
|
100
|
+
* curried(1)(2)(3); // 6
|
|
101
|
+
* curried(1, 2)(3); // 6
|
|
102
|
+
*/
|
|
103
|
+
export declare function curry<T extends (...args: any[]) => any>(fn: T, arity?: number): any;
|
|
104
|
+
/**
|
|
105
|
+
* Composes functions from right to left
|
|
106
|
+
* @param fns - Functions to compose
|
|
107
|
+
* @returns Composed function
|
|
108
|
+
* @example
|
|
109
|
+
* const double = (x: number) => x * 2;
|
|
110
|
+
* const addOne = (x: number) => x + 1;
|
|
111
|
+
* const composed = compose(double, addOne);
|
|
112
|
+
* composed(5); // 12 (addOne first, then double)
|
|
113
|
+
*/
|
|
114
|
+
export declare function compose<R>(...fns: Array<(arg: any) => any>): (arg: any) => R;
|
|
115
|
+
/**
|
|
116
|
+
* Pipes functions from left to right
|
|
117
|
+
* @param fns - Functions to pipe
|
|
118
|
+
* @returns Piped function
|
|
119
|
+
* @example
|
|
120
|
+
* const double = (x: number) => x * 2;
|
|
121
|
+
* const addOne = (x: number) => x + 1;
|
|
122
|
+
* const piped = pipe(double, addOne);
|
|
123
|
+
* piped(5); // 11 (double first, then addOne)
|
|
124
|
+
*/
|
|
125
|
+
export declare function pipe<R>(...fns: Array<(arg: any) => any>): (arg: any) => R;
|
|
126
|
+
/**
|
|
127
|
+
* Creates a function that negates the result of the predicate func
|
|
128
|
+
* @param predicate - Predicate to negate
|
|
129
|
+
* @returns Negated predicate
|
|
130
|
+
* @example
|
|
131
|
+
* const isEven = (n: number) => n % 2 === 0;
|
|
132
|
+
* const isOdd = negate(isEven);
|
|
133
|
+
* isOdd(3); // true
|
|
134
|
+
*/
|
|
135
|
+
export declare function negate<T extends (...args: any[]) => boolean>(predicate: T): T;
|
|
136
|
+
/**
|
|
137
|
+
* Creates a function that invokes func with its arguments transformed
|
|
138
|
+
* @param fn - Function to wrap
|
|
139
|
+
* @param transforms - Argument transforms
|
|
140
|
+
* @returns New function with transformed arguments
|
|
141
|
+
* @example
|
|
142
|
+
* const doubled = overArgs((x, y) => [x, y], [x => x * 2, x => x * 3]);
|
|
143
|
+
* doubled(1, 1); // [2, 3]
|
|
144
|
+
*/
|
|
145
|
+
export declare function overArgs<T extends (...args: any[]) => any>(fn: T, ...transforms: Array<(arg: any) => any>): (...args: any[]) => ReturnType<T>;
|
|
146
|
+
/**
|
|
147
|
+
* Creates a function that invokes func with partials prepended to the arguments
|
|
148
|
+
* @param fn - Function to partially apply arguments to
|
|
149
|
+
* @param partials - Arguments to be partially applied
|
|
150
|
+
* @returns Partially applied function
|
|
151
|
+
* @example
|
|
152
|
+
* const greet = (greeting: string, name: string) => `${greeting}, ${name}!`;
|
|
153
|
+
* const sayHello = partial(greet, 'Hello');
|
|
154
|
+
* sayHello('World'); // 'Hello, World!'
|
|
155
|
+
*/
|
|
156
|
+
export declare function partial<T extends (...args: any[]) => any>(fn: T, ...partials: any[]): (...args: any[]) => ReturnType<T>;
|
|
157
|
+
/**
|
|
158
|
+
* Creates a function that invokes func with partials appended to the arguments
|
|
159
|
+
* @param fn - Function to partially apply arguments to
|
|
160
|
+
* @param partials - Arguments to be partially applied
|
|
161
|
+
* @returns Partially applied function
|
|
162
|
+
* @example
|
|
163
|
+
* const greet = (name: string, greeting: string) => `${greeting}, ${name}!`;
|
|
164
|
+
* const greetWorld = partialRight(greet, 'Hello');
|
|
165
|
+
* greetWorld('World'); // 'Hello, World!'
|
|
166
|
+
*/
|
|
167
|
+
export declare function partialRight<T extends (...args: any[]) => any>(fn: T, ...partials: any[]): (...args: any[]) => ReturnType<T>;
|
|
168
|
+
/**
|
|
169
|
+
* Creates a function that invokes func with the this binding of the created function
|
|
170
|
+
* @param fn - Function to bind
|
|
171
|
+
* @param thisArg - The this binding of func
|
|
172
|
+
* @param partials - Arguments to be partially applied
|
|
173
|
+
* @returns Bound function
|
|
174
|
+
* @example
|
|
175
|
+
* const obj = { x: 42 };
|
|
176
|
+
* const getX = bind(function() { return this.x; }, obj);
|
|
177
|
+
* getX(); // 42
|
|
178
|
+
*/
|
|
179
|
+
export declare function bind<T extends (...args: any[]) => any>(fn: T, thisArg: any, ...partials: any[]): (...args: any[]) => ReturnType<T>;
|
|
180
|
+
/**
|
|
181
|
+
* Creates a function that invokes func with arguments reversed
|
|
182
|
+
* @param fn - Function to flip arguments for
|
|
183
|
+
* @returns Function with flipped arguments
|
|
184
|
+
* @example
|
|
185
|
+
* const flipped = flip((a, b, c) => [a, b, c]);
|
|
186
|
+
* flipped(1, 2, 3); // [3, 2, 1]
|
|
187
|
+
*/
|
|
188
|
+
export declare function flip<T extends (...args: any[]) => any>(fn: T): (...args: Parameters<T>) => ReturnType<T>;
|
|
189
|
+
/**
|
|
190
|
+
* Creates a function that accepts up to n arguments, ignoring any additional arguments
|
|
191
|
+
* @param fn - Function to cap arguments for
|
|
192
|
+
* @param n - Arity cap
|
|
193
|
+
* @returns Function with capped arity
|
|
194
|
+
* @example
|
|
195
|
+
* const capped = ary((a, b, c) => [a, b, c], 2);
|
|
196
|
+
* capped(1, 2, 3, 4); // [1, 2, undefined]
|
|
197
|
+
*/
|
|
198
|
+
export declare function ary<T extends (...args: any[]) => any>(fn: T, n: number): (...args: any[]) => ReturnType<T>;
|
|
199
|
+
/**
|
|
200
|
+
* Creates a function that accepts up to one argument, ignoring any additional arguments
|
|
201
|
+
* @param fn - Function to cap arguments for
|
|
202
|
+
* @returns Unary function
|
|
203
|
+
* @example
|
|
204
|
+
* const unary = unary(parseInt);
|
|
205
|
+
* ['6', '8', '10'].map(unary); // [6, 8, 10] instead of [6, NaN, 2]
|
|
206
|
+
*/
|
|
207
|
+
export declare function unary<T extends (arg: any, ...rest: any[]) => any>(fn: T): (arg: Parameters<T>[0]) => ReturnType<T>;
|
|
208
|
+
/**
|
|
209
|
+
* Defers invoking the func until the current call stack has cleared
|
|
210
|
+
* @param fn - Function to defer
|
|
211
|
+
* @param args - Arguments to invoke func with
|
|
212
|
+
* @returns Timer id
|
|
213
|
+
* @example
|
|
214
|
+
* defer(console.log, 'Deferred');
|
|
215
|
+
*/
|
|
216
|
+
export declare function defer<T extends (...args: any[]) => any>(fn: T, ...args: Parameters<T>): ReturnType<typeof setTimeout>;
|
|
217
|
+
/**
|
|
218
|
+
* Delays invoking func until after wait milliseconds
|
|
219
|
+
* @param fn - Function to delay
|
|
220
|
+
* @param wait - Milliseconds to delay invocation
|
|
221
|
+
* @param args - Arguments to invoke func with
|
|
222
|
+
* @returns Timer id
|
|
223
|
+
* @example
|
|
224
|
+
* delay(console.log, 1000, 'Delayed');
|
|
225
|
+
*/
|
|
226
|
+
export declare function delay<T extends (...args: any[]) => any>(fn: T, wait: number, ...args: Parameters<T>): ReturnType<typeof setTimeout>;
|
|
227
|
+
/**
|
|
228
|
+
* Creates a function that memoizes the result of func with a Time-To-Live (TTL)
|
|
229
|
+
* @param fn - Function to memoize
|
|
230
|
+
* @param ttl - Time to live in milliseconds
|
|
231
|
+
* @param resolver - Optional function to generate cache key
|
|
232
|
+
* @returns Memoized function with TTL
|
|
233
|
+
* @example
|
|
234
|
+
* const expensiveApi = memoizeWithTTL(fetchData, 60000); // Cache for 1 minute
|
|
235
|
+
*/
|
|
236
|
+
export declare function memoizeWithTTL<T extends (...args: any[]) => any>(fn: T, ttl: number, resolver?: (...args: Parameters<T>) => string): T & {
|
|
237
|
+
cache: Map<string, {
|
|
238
|
+
value: ReturnType<T>;
|
|
239
|
+
expires: number;
|
|
240
|
+
}>;
|
|
241
|
+
};
|
|
242
|
+
/**
|
|
243
|
+
* Creates a function that invokes func at most n times
|
|
244
|
+
* @param fn - Function to restrict
|
|
245
|
+
* @param n - Number of calls at which to stop executing func
|
|
246
|
+
* @returns Restricted function
|
|
247
|
+
* @example
|
|
248
|
+
* const limited = before((n) => console.log(n), 3);
|
|
249
|
+
* limited(1); // Logs 1
|
|
250
|
+
* limited(2); // Logs 2
|
|
251
|
+
* limited(3); // Does nothing
|
|
252
|
+
*/
|
|
253
|
+
export declare function before<T extends (...args: any[]) => any>(fn: T, n: number): T;
|
|
254
|
+
/**
|
|
255
|
+
* Creates a function that invokes func once it's called n or more times
|
|
256
|
+
* @param fn - Function to restrict
|
|
257
|
+
* @param n - Number of calls before func is invoked
|
|
258
|
+
* @returns Restricted function
|
|
259
|
+
* @example
|
|
260
|
+
* const afterThree = after((n) => console.log('Called!'), 3);
|
|
261
|
+
* afterThree(); // Does nothing
|
|
262
|
+
* afterThree(); // Does nothing
|
|
263
|
+
* afterThree(); // Logs 'Called!'
|
|
264
|
+
*/
|
|
265
|
+
export declare function after<T extends (...args: any[]) => any>(fn: T, n: number): T;
|
|
266
|
+
/**
|
|
267
|
+
* Wraps a function to catch and handle errors
|
|
268
|
+
* @param fn - Function to wrap
|
|
269
|
+
* @param errorHandler - Error handler function
|
|
270
|
+
* @returns Wrapped function
|
|
271
|
+
* @example
|
|
272
|
+
* const safe = tryCatch(
|
|
273
|
+
* () => JSON.parse('invalid'),
|
|
274
|
+
* (error) => ({ error: error.message })
|
|
275
|
+
* );
|
|
276
|
+
*/
|
|
277
|
+
export declare function tryCatch<T extends (...args: any[]) => any>(fn: T, errorHandler: (error: Error, ...args: Parameters<T>) => any): T;
|
|
278
|
+
/**
|
|
279
|
+
* Creates a function that returns the result of invoking the given functions with the this binding of the created function,
|
|
280
|
+
* where each successive invocation is supplied the return value of the previous
|
|
281
|
+
* @param fns - Functions to invoke
|
|
282
|
+
* @returns Flow function
|
|
283
|
+
* @example
|
|
284
|
+
* const calculate = flow(
|
|
285
|
+
* (n: number) => n * 2,
|
|
286
|
+
* (n: number) => n + 1,
|
|
287
|
+
* (n: number) => n * 3
|
|
288
|
+
* );
|
|
289
|
+
* calculate(5); // 33
|
|
290
|
+
*/
|
|
291
|
+
export declare function flow<R>(...fns: Array<(arg: any) => any>): (arg: any) => R;
|
|
292
|
+
/**
|
|
293
|
+
* Creates a function that returns the result of invoking the given functions from right to left
|
|
294
|
+
* @param fns - Functions to invoke
|
|
295
|
+
* @returns Flow right function
|
|
296
|
+
* @example
|
|
297
|
+
* const calculate = flowRight(
|
|
298
|
+
* (n: number) => n * 3,
|
|
299
|
+
* (n: number) => n + 1,
|
|
300
|
+
* (n: number) => n * 2
|
|
301
|
+
* );
|
|
302
|
+
* calculate(5); // 33
|
|
303
|
+
*/
|
|
304
|
+
export declare function flowRight<R>(...fns: Array<(arg: any) => any>): (arg: any) => R;
|
|
305
|
+
/**
|
|
306
|
+
* Wraps an async function to retry on failure
|
|
307
|
+
* @param fn - Async function to wrap
|
|
308
|
+
* @param options - Retry options
|
|
309
|
+
* @returns Wrapped function with retry logic
|
|
310
|
+
* @example
|
|
311
|
+
* const fetchWithRetry = retry(fetchData, { retries: 3, delay: 1000 });
|
|
312
|
+
*/
|
|
313
|
+
export declare function retry<T extends (...args: any[]) => Promise<any>>(fn: T, options?: {
|
|
314
|
+
retries?: number;
|
|
315
|
+
delay?: number;
|
|
316
|
+
backoff?: number;
|
|
317
|
+
onRetry?: (error: Error, attempt: number) => void;
|
|
318
|
+
}): T;
|
|
319
|
+
/**
|
|
320
|
+
* Creates a function that invokes func with a timeout
|
|
321
|
+
* @param fn - Function to wrap with timeout
|
|
322
|
+
* @param timeout - Timeout in milliseconds
|
|
323
|
+
* @param onTimeout - Optional callback when timeout occurs
|
|
324
|
+
* @returns Function with timeout
|
|
325
|
+
* @example
|
|
326
|
+
* const timedFetch = withTimeout(fetchData, 5000);
|
|
327
|
+
*/
|
|
328
|
+
export declare function withTimeout<T extends (...args: any[]) => Promise<any>>(fn: T, timeout: number, onTimeout?: () => void): T;
|
|
329
|
+
//# sourceMappingURL=functions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"functions.d.ts","sourceRoot":"","sources":["../../../src/lib/functions/functions.ts"],"names":[],"mappings":"AAE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