Skip to content

Commit

Permalink
test: correctly reproduce #3819
Browse files Browse the repository at this point in the history
  • Loading branch information
johnsoncodehk committed Jul 20, 2024
1 parent 6cc2bd6 commit 12c7a9f
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 10 deletions.
8 changes: 8 additions & 0 deletions test-workspace/tsc/#3819/component.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<script lang="ts" setup generic="T">
type ISlots = {
"last-columns": (props: string) => void
"lastColumns": (props: string) => void
};
defineSlots<ISlots>();
</script>
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
<script setup>
import Comp from './comp.vue';
import Comp from './component.vue';
const config = {
a: 'a',
b: 'b',
c: 'c',
d: 'd',
};
}
</script>

<template>
<Comp :config="config">
<template #last-columns></template>
<!-- @vue-expect-error -->
<template #last-columnsasd></template>
<template #last-columnsasd></template> <!-- should be error -->
<template #lastColumns></template>
<!-- @vue-expect-error -->
<template #lastColumnsasd></template>
Expand Down
8 changes: 8 additions & 0 deletions test-workspace/tsc/#3819/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"extends": "../../tsconfig.json",
"include": [ "**/*" ],
"compilerOptions": {
"strict": false,
"checkJs": true,
},
}
7 changes: 0 additions & 7 deletions test-workspace/tsc/vue3/#3819/comp.vue

This file was deleted.

0 comments on commit 12c7a9f

Please sign in to comment.