Skip to content

Commit

Permalink
test: update
Browse files Browse the repository at this point in the history
  • Loading branch information
KazariEX committed Dec 24, 2024
1 parent 6a54fc2 commit 210ac37
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 17 deletions.
15 changes: 0 additions & 15 deletions test-workspace/tsc/passedFixtures/vue3/#5082/main.vue

This file was deleted.

10 changes: 8 additions & 2 deletions test-workspace/tsc/passedFixtures/vue3/slots/main.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
<template>
<!-- $slots type -->
{{ exactType($slots.foo, {} as Slot<{} | undefined> | undefined) }}

<!-- component slots type -->
<Comp value="1">
<template #foo="bindings">{{ exactType(bindings, {} as string) }}</template>
</Comp>
Expand All @@ -26,7 +29,10 @@
</template>

<script lang="ts">
export default { name: 'Self' };
export default {
name: 'Self',
slots: Object as SlotsType<{ foo?: {} }>
};
declare const Comp: new <T>(props: { value: T; }) => {
$props: typeof props;
Expand All @@ -37,7 +43,7 @@ declare const Comp: new <T>(props: { value: T; }) => {
</script>

<script lang="ts" setup>
import { ref, useSlots, VNode } from 'vue';
import { ref, type Slot, type SlotsType, useSlots, type VNode } from 'vue';
import { exactType } from '../../shared';
const baz = ref('baz' as const);
Expand Down

0 comments on commit 210ac37

Please sign in to comment.