fix(types): properly infer return type from async setup (#2051)

fix #2049
This commit is contained in:
HcySunYang
2020-09-14 23:28:56 +08:00
committed by GitHub
parent 0124eacc91
commit 24fcf6ae7c
4 changed files with 47 additions and 7 deletions

View File

@@ -72,6 +72,8 @@ export interface ComponentCustomOptions {}
export type RenderFunction = () => VNodeChild
export type UnwrapAsyncBindings<T> = T extends Promise<infer S> ? S : T
export interface ComponentOptionsBase<
Props,
RawBindings,