Comparing version 0.0.3 to 0.0.4
@@ -1,3 +0,3 @@ | ||
import { Ref, DeepReadonly } from 'vue'; | ||
declare function useMemo<T>(valueGenerator: () => T): DeepReadonly<Ref<T>>; | ||
import { ComputedRef } from 'vue'; | ||
declare function useMemo<T>(valueGenerator: () => T): ComputedRef<T>; | ||
export default useMemo; |
@@ -1,2 +0,2 @@ | ||
import { computed, ref, readonly, watch } from 'vue'; | ||
import { computed, ref, watch } from 'vue'; | ||
function useMemo(valueGenerator) { | ||
@@ -8,4 +8,4 @@ const computedValueRef = computed(valueGenerator); | ||
}); | ||
return readonly(valueRef); | ||
return valueRef; | ||
} | ||
export default useMemo; |
@@ -1,3 +0,3 @@ | ||
import { Ref, DeepReadonly } from 'vue'; | ||
declare function useMemo<T>(valueGenerator: () => T): DeepReadonly<Ref<T>>; | ||
import { ComputedRef } from 'vue'; | ||
declare function useMemo<T>(valueGenerator: () => T): ComputedRef<T>; | ||
export default useMemo; |
@@ -10,4 +10,4 @@ "use strict"; | ||
}); | ||
return vue_1.readonly(valueRef); | ||
return valueRef; | ||
} | ||
exports.default = useMemo; |
{ | ||
"name": "vooks", | ||
"version": "0.0.3", | ||
"version": "0.0.4", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
27123