-
-
Notifications
You must be signed in to change notification settings - Fork 371
/
main.vue
40 lines (38 loc) · 1.13 KB
/
main.vue
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
<script lang="ts">
import { exactType } from 'vue-tsc/shared';
import { defineComponent, PropType } from 'vue';
import ScriptSetup from './script-setup.vue';
import ScriptSetupGeneric from './script-setup-generic.vue';
const ScriptSetupExact = defineComponent({
props: {} as {
a: PropType<string>;
b: { type: PropType<string>, required: true };
c: { type: PropType<number>, required: true };
d: PropType<number>;
e: PropType<string>;
f: { type: PropType<string>, required: true };
g: PropType<string>;
},
setup() {
return {};
},
});
declare const ScriptSetupGenericExact: <T, >(
_props: NonNullable<typeof _setup>['props'] & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps,
_ctx?: Pick<NonNullable<typeof _setup>, 'attrs' | 'emit' | 'slots'>,
_setup?: {
props: {
a?: T | undefined;
b?: T | undefined;
c?: T | undefined;
d: T;
},
attrs: any,
slots: {},
emit: any,
expose(_exposed: {}): void,
}
) => import('vue').VNode & { __ctx?: typeof _setup };
exactType(ScriptSetup, ScriptSetupExact);
exactType(ScriptSetupGeneric, ScriptSetupGenericExact);
</script>