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

src/helpers.ts

Lines changed: 3 additions & 1 deletion
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.

src/index.ts

Lines changed: 1 addition & 0 deletions
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy