Skip to content

Commit 8466a28

Browse files
committed
type of inject should be object now
1 parent 2e35046 commit 8466a28

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Diff for: src/core/instance/inject.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,8 @@ export function initInjections (vm: Component) {
3535
}
3636
}
3737

38-
export function resolveInject (inject: any, vm: Component): ?Object {
38+
export function resolveInject (inject: ?Object, vm: Component): ?Object {
3939
if (inject) {
40-
// inject is :any because flow is not smart enough to figure out cached
4140
const result = Object.create(null)
4241
const keys = hasSymbol
4342
? Reflect.ownKeys(inject)

0 commit comments

Comments
 (0)