Skip to content

Commit

Permalink
add reference teest
Browse files Browse the repository at this point in the history
  • Loading branch information
so1ve committed Nov 9, 2023
1 parent fcf35a8 commit c17df64
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<script setup lang="ts">
defineProps<{
foo?: number;
bar?: number;
}>();
</script>
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<script setup lang="ts">
import Comp from './Comp.vue';
const foo = 1;
// ^reference: 1
const bar = '';
// ^reference: 1
</script>

<template>
<Comp :foo></Comp>
<!-- @vue-expect-error should typecheck -->
<Comp :bar></Comp>
</template>

0 comments on commit c17df64

Please sign in to comment.