Skip to content

Commit 3193816

Browse files
committed
feat: update to [email protected] and type fixes
1 parent 127e96a commit 3193816

File tree

5 files changed

+10
-10
lines changed

5 files changed

+10
-10
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@
7171
"serve": "^11.3.0",
7272
"ts-jest": "^25.2.1",
7373
"tsd": "^0.11.0",
74-
"typescript": "^3.8.3",
74+
"typescript": "^3.9.1-rc",
7575
"yorkie": "^2.0.0"
7676
}
7777
}

packages/runtime-core/src/componentOptions.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -178,9 +178,9 @@ export interface MethodOptions {
178178
}
179179

180180
export type ExtractComputedReturns<T extends any> = {
181-
[key in keyof T]: T[key] extends { get: Function }
182-
? ReturnType<T[key]['get']>
183-
: ReturnType<T[key]>
181+
[key in keyof T]: T[key] extends { get: (...args: any[]) => infer TReturn }
182+
? TReturn
183+
: T[key] extends (...args: any[]) => infer TReturn ? TReturn : never
184184
}
185185

186186
type WatchOptionItem =

packages/runtime-core/src/components/Suspense.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ function createSuspenseBoundary(
244244
/* istanbul ignore if */
245245
if (__DEV__ && !__TEST__ && !hasWarned) {
246246
hasWarned = true
247-
console[console.info ? 'info' : 'log'](
247+
console[(console as any).info ? 'info' : 'log'](
248248
`<Suspense> is an experimental feature and its API will likely change.`
249249
)
250250
}

packages/vue/src/devCheck.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
if (__BROWSER__ && __DEV__) {
2-
console[console.info ? 'info' : 'log'](
2+
console[(console as any).info ? 'info' : 'log'](
33
`You are running a development build of Vue.\n` +
44
`Make sure to use the production build (*.prod.js) when deploying for production.`
55
)

yarn.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7420,10 +7420,10 @@ typedarray@^0.0.6:
74207420
resolved "https://registry.yarnpkg.com/typedarray/-/typedarray-0.0.6.tgz#867ac74e3864187b1d3d47d996a78ec5c8830777"
74217421
integrity sha1-hnrHTjhkGHsdPUfZlqeOxciDB3c=
74227422

7423-
typescript@^3.8.3:
7424-
version "3.8.3"
7425-
resolved "https://registry.yarnpkg.com/typescript/-/typescript-3.8.3.tgz#409eb8544ea0335711205869ec458ab109ee1061"
7426-
integrity sha512-MYlEfn5VrLNsgudQTVJeNaQFUAI7DkhnOjdpAp4T+ku1TfQClewlbSuTVHiA+8skNBgaf02TL/kLOvig4y3G8w==
7423+
typescript@^3.9.1-rc:
7424+
version "3.9.1-rc"
7425+
resolved "https://registry.yarnpkg.com/typescript/-/typescript-3.9.1-rc.tgz#81d5a5a0a597e224b6e2af8dffb46524b2eaf5f3"
7426+
integrity sha512-+cPv8L2Vd4KidCotqi2wjegBZ5n47CDRUu/QiLVu2YbeXAz78hIfcai9ziBiNI6JTGTVwUqXRug2UZxDcxhvFw==
74277427

74287428
typescript@~3.7.2:
74297429
version "3.7.5"

0 commit comments

Comments
 (0)