From 7f706e824de78494ee7fb66bc528aac5161a0bdb Mon Sep 17 00:00:00 2001 From: David Aurelio Date: Tue, 11 Apr 2017 08:00:28 -0700 Subject: [PATCH] Use exact types for options Summary: Make option types exact to prevent stale options in our code base. Reviewed By: jeanlauliac Differential Revision: D4867773 fbshipit-source-id: 6aa06649735d6105f4b6ff2af7f699cf8ba336c7 --- packager/src/ModuleGraph/types.flow.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/packager/src/ModuleGraph/types.flow.js b/packager/src/ModuleGraph/types.flow.js index 4e8643b8cd..0e57f6bb3b 100644 --- a/packager/src/ModuleGraph/types.flow.js +++ b/packager/src/ModuleGraph/types.flow.js @@ -45,10 +45,10 @@ type GraphOptions = {| skip?: Set, |}; -export type GraphResult = { +export type GraphResult = {| entryModules: Array, modules: Array, -}; +|}; export type IdForPathFn = {path: string} => number; @@ -75,10 +75,10 @@ export type OutputFn = ( idForPath: IdForPathFn, ) => OutputResult; -type OutputResult = { +type OutputResult = {| code: string, map: SourceMap, -}; +|}; export type PackageData = {| browser?: Object | string, @@ -99,11 +99,11 @@ type ResolveOptions = { log?: Console, }; -export type TransformerResult = { +export type TransformerResult = {| ast: ?Ast, code: string, map: ?SourceMap, -}; +|}; export type Transformer = { transform: (