Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
johnsoncodehk committed Jul 5, 2023
1 parent f3fb210 commit d4ef704
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,21 @@ import { exactType } from 'vue-tsc/shared';
declare module 'vue' {
export interface GlobalComponents {
FunctionalComponent: any;
ComponentWithinTestIssue1886: any;
}
}
declare const FunctionalComponent: new () => {
$slots: {
declare const ComponentWithinTestIssue1886: new () => {
$slots: {
foo: (props: { bar: string }) => any;
}
};
</script>

<template>
<FunctionalComponent>
<ComponentWithinTestIssue1886>
<template #foo="{ bar }">
{{ exactType(bar, '' as string) }}
{{ exactType(bar, {} as string) }}
</template>
</FunctionalComponent>
</template>
</ComponentWithinTestIssue1886>
</template>
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<script setup lang="ts">
declare module 'vue' {
export interface GlobalComponents {
TransitionWithinTestIssue2157: typeof import('vue')['Transition'];
}
export interface GlobalComponents {
TransitionWithinTestIssue2157: typeof import('vue')['Transition'];
}
};
</script>

<template>
<TransitionWithinTestIssue2157 enter-active-class=""></Transition>
<TransitionWithinTestIssue2157 enter-active-class="" />
</template>

0 comments on commit d4ef704

Please sign in to comment.