Summary: Make option types exact to prevent stale options in our code base.

Reviewed By: jeanlauliac

Differential Revision: D4867773

fbshipit-source-id: 6aa06649735d6105f4b6ff2af7f699cf8ba336c7
This commit is contained in:
David Aurelio 2017-04-11 08:00:28 -07:00 коммит произвёл Facebook Github Bot
Родитель eabc9cecd6
Коммит 7f706e824d
1 изменённых файлов: 6 добавлений и 6 удалений

Просмотреть файл

@ -45,10 +45,10 @@ type GraphOptions = {|
skip?: Set<string>,
|};
export type GraphResult = {
export type GraphResult = {|
entryModules: Array<Module>,
modules: Array<Module>,
};
|};
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: (