Skip to content

Commit 0315549

Browse files
committed
chore: add sample return type
1 parent 32efe8d commit 0315549

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,15 @@ const transpiledTemplate = await transpileVueTemplate(
4949
)
5050

5151
console.log(transpiledTemplate)
52+
// <template>
53+
// <div v-if="test" />
54+
// </template>
55+
//
56+
// <script setup lang="ts">
57+
// defineProps<{
58+
// test?: string
59+
// }>()
60+
// </script>
5261

5362
const sfc = parseSFC(transpiledTemplate, {
5463
filename: 'test.vue',
@@ -57,6 +66,13 @@ const sfc = parseSFC(transpiledTemplate, {
5766

5867
const { content: scriptBlockContents } = await preTranspileScriptSetup(sfc.descriptor, 'test.vue')
5968
console.log(scriptBlockContents)
69+
70+
// defineProps({
71+
// test: {
72+
// type: String,
73+
// required: false
74+
// }
75+
// })
6076
```
6177

6278
## 💻 Development

0 commit comments

Comments
 (0)