@cfcs/angular
Version:
Write once, create framework components that supports React, Vue, Svelte, and more.
6 lines (5 loc) • 510 B
TypeScript
import { ReactiveSubscribe, ReactiveAdapterParam, ReactiveState } from "@cfcs/core";
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> = {}>(self: State, reactiveAdapter: ReactiveAdapterParam<Instance, State, Methods, Props, Events>, props?: () => Props): {
mounted: () => void;
destroy: () => void;
};