-
-
Notifications
You must be signed in to change notification settings - Fork 416
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: Johnson Chu <[email protected]>
- Loading branch information
1 parent
c153572
commit f043b32
Showing
10 changed files
with
142 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 5 additions & 0 deletions
5
packages/vue-test-workspace/vue-tsc/non-strict-template/#3289/Comp.vue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<script setup lang="tsx" generic="T"> | ||
defineEmits<{ | ||
(name: 'foo', value: string): void | ||
}>(); | ||
</script> |
4 changes: 4 additions & 0 deletions
4
packages/vue-test-workspace/vue-tsc/non-strict-template/#3289/main.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
import { exactType } from 'vue-tsc/shared'; | ||
import Comp from './Comp.vue'; | ||
|
||
<Comp onFoo={s => exactType(s, '' as string)} />; |
11 changes: 11 additions & 0 deletions
11
packages/vue-test-workspace/vue-tsc/non-strict-template/#3379/Comp.vue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<script setup lang="ts" generic="T"> | ||
type Emits = { | ||
(name: 'update:modelValue', modelValue: string): void | ||
(name: 'removeOptions', options: number): void | ||
(name: 'addOptions', options: number): void | ||
(name: 'selectOptions', options: number): void | ||
(name: 'clickNode', option: number): void | ||
}; | ||
defineEmits<Emits>(); | ||
</script> |
8 changes: 8 additions & 0 deletions
8
packages/vue-test-workspace/vue-tsc/non-strict-template/#3379/main.vue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<script lang="ts" setup> | ||
import { exactType } from 'vue-tsc/shared'; | ||
import Comp from './Comp.vue'; | ||
</script> | ||
|
||
<template> | ||
<Comp @update:modelValue="s => exactType(s, '' as string)"></Comp> | ||
</template> |
5 changes: 5 additions & 0 deletions
5
packages/vue-test-workspace/vue-tsc/non-strict-template/#3476/Comp.vue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<script setup lang="ts" generic="T extends number"> | ||
defineEmits<{ | ||
(e: 'myEvent', data: T): void; | ||
}>() | ||
</script> |
8 changes: 8 additions & 0 deletions
8
packages/vue-test-workspace/vue-tsc/non-strict-template/#3476/main.vue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<script setup lang="ts"> | ||
import { exactType } from 'vue-tsc/shared'; | ||
import Comp from './Comp.vue'; | ||
</script> | ||
|
||
<template> | ||
<Comp @my-event="v => exactType(v, 1 as number)" /> | ||
</template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters