We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2e35046 commit 8466a28Copy full SHA for 8466a28
src/core/instance/inject.js
@@ -35,9 +35,8 @@ export function initInjections (vm: Component) {
35
}
36
37
38
-export function resolveInject (inject: any, vm: Component): ?Object {
+export function resolveInject (inject: ?Object, vm: Component): ?Object {
39
if (inject) {
40
- // inject is :any because flow is not smart enough to figure out cached
41
const result = Object.create(null)
42
const keys = hasSymbol
43
? Reflect.ownKeys(inject)
0 commit comments