8000 fix: props is not optional with createComponent · nathee/vue-function-api@a68e118 · GitHub
[go: up one dir, main page]

Skip to content

Commit a68e118

Browse files
committed
fix: props is not optional with createComponent
1 parent 9be2df1 commit a68e118

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ts-api/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export type PropType<T> = T;
77
// type FullPropType<T> = T extends { required: boolean } ? T : T | undefined;
88
type Omit<T, K> = Pick<T, Exclude<keyof T, K>>;
99
type ComponentOptionsWithSetup<Props> = Omit<ComponentOptions<Vue>, 'props' | 'setup'> & {
10-
props: Props;
10+
props?: Props;
1111
setup?: (
1212
this: undefined,
1313
props: { [K in keyof Props]: Props[K] },

0 commit comments

Comments
 (0)
0