Skip to content

Commit

Permalink
fix(type): accept undefined return for setup() (#417)
Browse files Browse the repository at this point in the history
* fix(type): accept undefined return for setup()

* fix
  • Loading branch information
antfu committed Jun 30, 2020
1 parent 6e4e949 commit 64b16ff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/component/componentOptions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,11 @@ export interface MethodOptions {
[key: string]: Function
}

export type SetupFunction<Props, RawBindings> = (
export type SetupFunction<Props, RawBindings = {}> = (
this: void,
props: Props,
ctx: SetupContext
) => RawBindings | (() => VNode | null)
) => RawBindings | (() => VNode | null) | void

interface ComponentOptionsBase<
Props,
Expand Down

0 comments on commit 64b16ff

Please sign in to comment.