Skip to main content

ReactiveAdapterResult

Get the result type of reactive component through adapter.

type ReactiveAdapterResult<Adapter extends ReactiveAdapterParam<any, any, any, any, any>>= Adapter extends ReactiveAdapterParam<Instance, State, Methods, any, Events> ? VueReactiveResult<Instance, State, Methods, Events> : {}
Example
import { ReactiveAdapterResult } from "@cfcs/react";

type ReactiveComponentResult = ReactiveAdapterResult<typeof REACTIVE_ADAPTER>;