@vueuse/math
Advanced tools
Comparing version
@@ -99,2 +99,3 @@ import * as vue0 from "vue"; | ||
type UseMathKeys = keyof { [K in keyof Math as Math[K] extends ((...args: any) => any) ? K : never]: unknown }; | ||
type UseMathReturn<K extends keyof Math> = ReturnType<Reactified<Math[K], true>>; | ||
/** | ||
@@ -107,3 +108,3 @@ * Reactive `Math` methods. | ||
*/ | ||
declare function useMath<K extends keyof Math>(key: K, ...args: ArgumentsType<Reactified<Math[K], true>>): ReturnType<Reactified<Math[K], true>>; | ||
declare function useMath<K extends keyof Math>(key: K, ...args: ArgumentsType<Reactified<Math[K], true>>): UseMathReturn<K>; | ||
//#endregion | ||
@@ -170,2 +171,2 @@ //#region useMax/index.d.ts | ||
//#endregion | ||
export { ProjectorFunction, UseMathKeys, UsePrecisionOptions, UseProjection, and, createGenericProjection, createProjection, logicAnd, logicNot, logicOr, not, or, useAbs, useAverage, useCeil, useClamp, useFloor, useMath, useMax, useMin, usePrecision, useProjection, useRound, useSum, useTrunc }; | ||
export { ProjectorFunction, UseMathKeys, UseMathReturn, UsePrecisionOptions, UseProjection, and, createGenericProjection, createProjection, logicAnd, logicNot, logicOr, not, or, useAbs, useAverage, useCeil, useClamp, useFloor, useMath, useMax, useMin, usePrecision, useProjection, useRound, useSum, useTrunc }; |
{ | ||
"name": "@vueuse/math", | ||
"type": "module", | ||
"version": "14.0.0-alpha.2", | ||
"version": "14.0.0-alpha.3", | ||
"description": "Math functions for VueUse", | ||
@@ -41,3 +41,3 @@ "author": "Anthony Fu <https://github.com/antfu>", | ||
"dependencies": { | ||
"@vueuse/shared": "14.0.0-alpha.2" | ||
"@vueuse/shared": "14.0.0-alpha.3" | ||
}, | ||
@@ -44,0 +44,0 @@ "scripts": { |
25858
0.29%743
0.13%+ Added
- Removed