본문으로 건너뛰기

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>;