We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 57e16c9 commit 7eb6f5fCopy full SHA for 7eb6f5f
src/helpers.ts
@@ -145,7 +145,9 @@ export function emits(emitsOptions: EmitsOptions): VueConstructor {
145
return EmitsMixin
146
}
147
148
-type UnwrapSetupValue<T> = T extends Ref<infer R> ? R : ShallowUnwrapRef<T>
+export type UnwrapSetupValue<T> = T extends Ref<infer R>
149
+ ? R
150
+ : ShallowUnwrapRef<T>
151
152
export function setup<R>(setupFn: () => R): UnwrapSetupValue<R> {
153
// Hack to delay the invocation of setup function.
src/index.ts
@@ -33,4 +33,5 @@ export {
33
UnionToIntersection,
34
ExtractInstance,
35
NarrowEmit,
36
+ UnwrapSetupValue,
37
} from './helpers'
0 commit comments