Skip to content

Commit 64b16ff

Browse files
authored
fix(type): accept undefined return for setup() (#417)
* fix(type): accept undefined return for setup() * fix
1 parent 6e4e949 commit 64b16ff

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/component/componentOptions.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,11 @@ export interface MethodOptions {
3232
[key: string]: Function
3333
}
3434

35-
export type SetupFunction<Props, RawBindings> = (
35+
export type SetupFunction<Props, RawBindings = {}> = (
3636
this: void,
3737
props: Props,
3838
ctx: SetupContext
39-
) => RawBindings | (() => VNode | null)
39+
) => RawBindings | (() => VNode | null) | void
4040

4141
interface ComponentOptionsBase<
4242
Props,

0 commit comments

Comments
 (0)