Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 7eb6f5f

Browse filesBrowse files
committed
chore: fix build error
1 parent 57e16c9 commit 7eb6f5f
Copy full SHA for 7eb6f5f

File tree

Expand file treeCollapse file tree

2 files changed

+4
-1
lines changed
Filter options
Expand file treeCollapse file tree

2 files changed

+4
-1
lines changed

‎src/helpers.ts

Copy file name to clipboardExpand all lines: src/helpers.ts
+3-1Lines 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

Copy file name to clipboardExpand all lines: src/index.ts
+1Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.