From a6439279ffc05ad73c71f6028c263974c371c53f Mon Sep 17 00:00:00 2001 From: Rafael Oleza Date: Wed, 30 Aug 2017 08:12:41 -0700 Subject: [PATCH] Fix flow types of getShallowDependencies() Reviewed By: mjesun Differential Revision: D5735278 fbshipit-source-id: b9a2797a89a3893a5196ef8fe15d2ab8aa00e544 --- local-cli/server/util/attachHMRServer.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/local-cli/server/util/attachHMRServer.js b/local-cli/server/util/attachHMRServer.js index 2e6191876..50c7f0960 100644 --- a/local-cli/server/util/attachHMRServer.js +++ b/local-cli/server/util/attachHMRServer.js @@ -55,7 +55,7 @@ type PackagerServer = { ): Promise, getDependencies(options: DependencyOptions): Promise>, getModuleForPath(entryFile: string): Promise, - getShallowDependencies(options: DependencyOptions): Promise>, + getShallowDependencies(options: DependencyOptions): Promise>, setHMRFileChangeListener(listener: ?(type: string, filePath: string) => mixed): void, }; @@ -85,7 +85,7 @@ function attachHMRServer( bundleEntry: string, dependenciesCache: Array, dependenciesModulesCache: {[mixed]: TModule}, - shallowDependencies: {[string]: Array}, + shallowDependencies: {[string]: Array}, inverseDependenciesCache: mixed, |}; @@ -107,7 +107,7 @@ function attachHMRServer( async function getDependencies(platform: string, bundleEntry: string): Promise<{ dependenciesCache: Array, dependenciesModulesCache: {[mixed]: TModule}, - shallowDependencies: {[string]: Array}, + shallowDependencies: {[string]: Array}, inverseDependenciesCache: mixed, resolutionResponse: ResolutionResponse, }> { @@ -129,7 +129,7 @@ function attachHMRServer( const deps: Array<{ path: string, name?: string, - deps: Array, + deps: Array, }> = await Promise.all(response.dependencies.map(async (dep: TModule) => { const depName = await dep.getName();