@cfcs/vue3
Version:
Write once, create framework components that supports React, Vue, Svelte, and more.
5 lines (4 loc) • 975 B
TypeScript
import { ReactiveAdapterParam, ReactiveSubscribe, ReactiveState } from "@cfcs/core";
import { ReactiveLegacyResult, ReactiveResult } from "./types";
export declare function useReactive<Instance extends ReactiveSubscribe<Record<string, any>>, State extends Record<string, any> = ReactiveState<Instance>, Methods extends keyof Partial<Instance> = any, Props = any, Events extends Record<string, any> = {}>(reactiveAdapter: ReactiveAdapterParam<Instance, State, Methods, Props, Events>, props?: () => Props): ReactiveResult<Instance, State, Methods, Events>;
export declare function useLegacyReactive<Instance extends ReactiveSubscribe<Record<string, any>>, State extends Record<string, any> = ReactiveState<Instance>, Methods extends keyof Partial<Instance> = any, Props = any, Events extends Record<string, any> = {}>(reactiveAdapter: ReactiveAdapterParam<Instance, State, Methods, Props, Events>, props?: () => Props): ReactiveLegacyResult<Instance, State, Methods, Events>;