版博士V2.0程序
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

macros.d.ts 591 B

12345678910111213141516
  1. import type { ComponentObjectPropsOptions, ExtractPropTypes } from 'vue'
  2. import type { RefValue } from '@vue-macros/reactivity-transform/macros'
  3. export type RefValueObject<T> = {
  4. [K in keyof T]: RefValue<T[K]>
  5. }
  6. export declare function $defineProps<PropNames extends string = string>(
  7. props: PropNames[]
  8. ): Readonly<{
  9. [key in PropNames]?: any
  10. }>
  11. export declare function $defineProps<
  12. PP extends ComponentObjectPropsOptions = ComponentObjectPropsOptions
  13. >(props: PP): RefValueObject<ExtractPropTypes<PP>>
  14. export declare function $defineProps<TypeProps>(): RefValueObject<TypeProps>