link.vue.d.ts 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. import { LinkProps } from "./link.js";
  2. import * as vue from "vue";
  3. //#region ../../packages/components/link/src/link.vue.d.ts
  4. declare var __VLS_12: {}, __VLS_14: {};
  5. type __VLS_Slots = {} & {
  6. default?: (props: typeof __VLS_12) => any;
  7. } & {
  8. icon?: (props: typeof __VLS_14) => any;
  9. };
  10. declare const __VLS_base: vue.DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<LinkProps>, {
  11. type: undefined;
  12. underline: undefined;
  13. href: string;
  14. target: string;
  15. }>, unknown, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
  16. click: (evt: MouseEvent) => void;
  17. }, string, vue.PublicProps, Readonly<vue.ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<LinkProps>, {
  18. type: undefined;
  19. underline: undefined;
  20. href: string;
  21. target: string;
  22. }>>> & {
  23. onClick?: ((evt: MouseEvent) => any) | undefined;
  24. }, {
  25. target: "_blank" | "_parent" | "_self" | "_top" | (string & NonNullable<unknown>);
  26. type: "primary" | "success" | "warning" | "info" | "danger" | "default";
  27. underline: boolean | "always" | "never" | "hover";
  28. href: string;
  29. }, {}>;
  30. declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
  31. declare const _default: typeof __VLS_export;
  32. type __VLS_TypePropsToOption<T> = { [K in keyof T]-?: {} extends Pick<T, K> ? {
  33. type: vue.PropType<Required<T>[K]>;
  34. } : {
  35. type: vue.PropType<T[K]>;
  36. required: true;
  37. } };
  38. type __VLS_WithDefaults<P, D> = { [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_PrettifyLocal<P[K] & {
  39. default: D[K];
  40. }> : P[K] };
  41. type __VLS_WithSlots<T, S> = T & {
  42. new (): {
  43. $slots: S;
  44. };
  45. };
  46. type __VLS_PrettifyLocal<T> = (T extends any ? { [K in keyof T]: T[K] } : { [K in keyof T as K]: T[K] }) & {};
  47. //#endregion
  48. export { _default };