UNPKG

motion-v

Version:

<p align="center"> <img width="100" height="100" alt="Motion logo" src="https://user-images.githubusercontent.com/7850794/164965523-3eced4c4-6020-467e-acde-f11b7900ad62.png" /> </p> <h1 align="center">Motion for Vue</h1>

8 lines (7 loc) 477 B
import { Component, DefineComponent, ExtractPropTypes, ExtractPublicPropTypes, IntrinsicElementAttributes, MaybeRef } from 'vue'; export type ComponentProps<T> = T extends DefineComponent<ExtractPropTypes<infer Props>, any, any> ? ExtractPublicPropTypes<Props> : never; export type ElementType = keyof IntrinsicElementAttributes; export type AsTag = keyof IntrinsicElementAttributes | ({} & string) | Component; export type ToRefs<T> = { [K in keyof T]: MaybeRef<T[K]>; };