Skip to content

Commit 7eb6f5f

Browse files
committed
chore: fix build error
1 parent 57e16c9 commit 7eb6f5f

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

Diff for: src/helpers.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,9 @@ export function emits(emitsOptions: EmitsOptions): VueConstructor {
145145
return EmitsMixin
146146
}
147147

148-
type UnwrapSetupValue<T> = T extends Ref<infer R> ? R : ShallowUnwrapRef<T>
148+
export type UnwrapSetupValue<T> = T extends Ref<infer R>
149+
? R
150+
: ShallowUnwrapRef<T>
149151

150152
export function setup<R>(setupFn: () => R): UnwrapSetupValue<R> {
151153
// Hack to delay the invocation of setup function.

Diff for: src/index.ts

+1
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,5 @@ export {
3333
UnionToIntersection,
3434
ExtractInstance,
3535
NarrowEmit,
36+
UnwrapSetupValue,
3637
} from './helpers'

0 commit comments

Comments
 (0)