Skip to content

Commit

Permalink
test: add tests for #3488, #3518 (#3517)
Browse files Browse the repository at this point in the history
Co-authored-by: Johnson Chu <johnsoncodehk@gmail.com>
  • Loading branch information
so1ve and johnsoncodehk authored Sep 25, 2023
1 parent e4b49f5 commit c153572
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<script setup lang="ts">
defineExpose({ x: 3 });
</script>

<template>
{{
// @ts-expect-error
x
}}
</template>
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<script setup lang="ts">
import { exactType } from 'vue-tsc/shared';
const foo: string = '';
defineProps<{ foo: number; }>();
const bar: string = '';
defineExpose({ bar: 1 });
</script>

<template>
<!-- @vue-expect-error here is a bug of DefineComponent -->
{{ exactType(foo, {} as string) }}
{{ exactType(bar, {} as string) }}
</template>

0 comments on commit c153572

Please sign in to comment.