@antfu/utils
Advanced tools
Comparing version
@@ -165,5 +165,5 @@ /** | ||
/** | ||
* Call the function | ||
* Call the function, returning the result | ||
*/ | ||
declare function invoke(fn: Fn): void; | ||
declare function invoke<T>(fn: () => T): T; | ||
/** | ||
@@ -170,0 +170,0 @@ * Pass the value through the callback, and return the value |
{ | ||
"name": "@antfu/utils", | ||
"type": "module", | ||
"version": "8.1.0", | ||
"packageManager": "pnpm@9.15.3", | ||
"version": "8.1.1", | ||
"packageManager": "pnpm@10.4.0", | ||
"description": "Opinionated collection of common JavaScript / TypeScript utils by @antfu", | ||
@@ -41,3 +41,3 @@ "author": "Anthony Fu <anthonyfu117@hotmail.com>", | ||
"release": "bumpp --commit --push --tag && npm publish", | ||
"start": "esno src/index.ts", | ||
"start": "tsx src/index.ts", | ||
"typecheck": "tsc --noEmit", | ||
@@ -47,4 +47,4 @@ "test": "vitest" | ||
"devDependencies": { | ||
"@antfu/eslint-config": "^3.12.2", | ||
"@antfu/ni": "^0.23.2", | ||
"@antfu/eslint-config": "^4.2.0", | ||
"@antfu/ni": "^23.3.1", | ||
"@rollup/plugin-alias": "^5.1.1", | ||
@@ -54,16 +54,16 @@ "@rollup/plugin-commonjs": "^28.0.2", | ||
"@rollup/plugin-node-resolve": "^16.0.0", | ||
"@types/node": "^22.10.5", | ||
"@types/node": "^22.13.4", | ||
"@types/throttle-debounce": "^5.0.2", | ||
"bumpp": "^9.9.3", | ||
"eslint": "^8.57.1", | ||
"esno": "^4.8.0", | ||
"bumpp": "^10.0.3", | ||
"eslint": "^9.20.1", | ||
"p-limit": "^6.2.0", | ||
"rollup": "^4.30.1", | ||
"rollup": "^4.34.7", | ||
"rollup-plugin-dts": "^6.1.1", | ||
"rollup-plugin-esbuild": "^6.1.1", | ||
"rollup-plugin-esbuild": "^6.2.0", | ||
"throttle-debounce": "5.0.0", | ||
"tsx": "^4.8.0", | ||
"typescript": "^5.7.3", | ||
"vite": "^6.0.7", | ||
"vitest": "^2.1.8" | ||
"vite": "^6.1.0", | ||
"vitest": "^3.0.5" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
111075
-0.02%