fix(types): properly infer return type from async setup (#2051)
fix #2049
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user