shims-tsx.d.ts 446 B

1234567891011121314151617181920212223
  1. import Vue, { VNode } from "vue";
  2. declare module "*.tsx" {
  3. import Vue from "compatible-vue";
  4. export default Vue;
  5. }
  6. declare global {
  7. namespace JSX {
  8. interface Element extends VNode {}
  9. interface ElementClass extends Vue {}
  10. interface ElementAttributesProperty {
  11. $props: any;
  12. }
  13. interface IntrinsicElements {
  14. [elem: string]: any;
  15. }
  16. interface IntrinsicAttributes {
  17. [elem: string]: any;
  18. }
  19. }
  20. }