mirror of
https://github.com/status-im/react-native.git
synced 2025-02-04 05:34:15 +00:00
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
This commit is contained in:
parent
eabc9cecd6
commit
7f706e824d
@ -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: (
|
||||
|
Loading…
x
Reference in New Issue
Block a user