UNPKG

@vnmfify/core

Version:

```shell npm i @vnmfify/core -S ```

8 lines (7 loc) 283 B
import { DependencyList } from "react"; export interface ComputedRef<T = any> { readonly value: T; } declare type ComputedGetter<T> = () => T; export declare function useComputed<T>(getter: ComputedGetter<T>, deps?: DependencyList | undefined): ComputedRef<T>; export {};