UNPKG

motion-v

Version:

<h1 align="center"> <img width="35" height="35" alt="Motion logo" src="https://github.com/user-attachments/assets/00d6d1c3-72c4-4c2f-a664-69da13182ffc" /><br />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]>; };