@oku-ui/use-composable
Advanced tools
Comparing version 0.3.0-alpha.6 to 0.3.0-alpha.7
@@ -1,2 +0,2 @@ | ||
export { computedAsync, computedEager, isClient, syncRef, syncRefs, useScrollLock } from '@vueuse/core'; | ||
export { computedAsync, computedEager, isClient, reactiveOmit, reactivePick, syncRef, syncRefs, useScrollLock } from '@vueuse/core'; | ||
import * as vue from 'vue'; | ||
@@ -9,7 +9,7 @@ import { ComputedRef, Ref, ComponentPublicInstance } from 'vue'; | ||
onChange?: (value: T) => void; | ||
defaultProp?: ComputedRef<T>; | ||
defaultProp?: ComputedRef<T | undefined>; | ||
initialValue?: T; | ||
}; | ||
declare function useControllable<T>({ prop, onChange, defaultProp, initialValue, }: UseControllableStateParams<T>): { | ||
state: ComputedRef<T | undefined>; | ||
state: ComputedRef<T>; | ||
updateValue: (nextValue: T | undefined) => void; | ||
@@ -16,0 +16,0 @@ }; |
{ | ||
"name": "@oku-ui/use-composable", | ||
"type": "module", | ||
"version": "0.3.0-alpha.6", | ||
"version": "0.3.0-alpha.7", | ||
"license": "MIT", | ||
@@ -6,0 +6,0 @@ "source": "src/index.ts", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
12188
188