11<template >
2- <div style =" border : 2px solid red ; padding : 20px ; margin : 10px ; background : #f9f9f9 ; " >
2+ <div style =" border : 2px solid red ; padding : 20px ; margin : 10px ; background : #f9f9f9 " >
33 <h2 >Test Component from Monorepo</h2 >
4- <p >This is a simple Vue component with no external dependencies.</p >
5- <button @click =" count++" style =" padding : 8px 16px ; margin : 5px ;" >
6- Clicked {{ count }} times
7- </button >
4+ <p >Testing TypeScript imports with lang="ts"</p >
5+ <button @click =" count++" style =" padding : 8px 16px ; margin : 5px " >Clicked {{ count }} times</button >
6+
7+ <div style =" margin-top : 10px ; font-size : 12px ;" >
8+ <strong >Imported types evidence:</strong ><br >
9+ testLetter: {{ testLetter }}<br >
10+ testPos: {{ testPos }}
11+ </div >
812 </div >
913</template >
1014
11- <script setup>
12- // FallingLetters.vue imports to test incrementally:
13- // import { defineComponent, ref, onMounted, onUnmounted, PropType } from 'vue';
14- // import { useViewable, useQuestionView } from '@vue-skuilder/common-ui';
15- // import { FallingLettersQuestion } from './index';
16- // import { ViewData } from '@vue-skuilder/common';
17- // import { Letter, TreePosition } from './types';
15+ <script setup lang="ts">
16+ import { ref } from ' vue' ;
17+ import { Letter , TreePosition } from ' ./types' ;
1818
19- // Current test imports:
20- import { ref } from ' vue'
21-
22- const count = ref (0 )
23- </script >
19+ const count = ref (0 );
20+ const testLetter = { id: 1 , char: ' A' , x: 10 , y: 20 } as Letter ;
21+ const testPos = { id: 1 , left: 0 , height: 100 , scale: 1 } as TreePosition ;
22+ </script >
0 commit comments