@ztimson/utils 0.24.0 → 0.24.2
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/dist/index.cjs +16 -11
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +16 -11
- package/dist/index.mjs.map +1 -1
- package/dist/misc.d.ts +8 -0
- package/package.json +1 -1
package/dist/misc.d.ts
CHANGED
|
@@ -1,4 +1,12 @@
|
|
|
1
1
|
import { PathEvent } from './path-events.ts';
|
|
2
|
+
/**
|
|
3
|
+
* Run a stringified function with arguments asynchronously
|
|
4
|
+
* @param {object} args Map of key/value arguments
|
|
5
|
+
* @param {string} fn Function as string
|
|
6
|
+
* @param {boolean} async Run with async (returns a promise)
|
|
7
|
+
* @return {T | Promise<T>} Function return result
|
|
8
|
+
*/
|
|
9
|
+
export declare function fn<T>(args: object, fn: string, async?: boolean): T;
|
|
2
10
|
/**
|
|
3
11
|
* Get profile image from Gravatar
|
|
4
12
|
*
|