mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-05-06 00:43:38 +08:00
packager: ResolutionRequest: stronger option typing
Reviewed By: cpojer Differential Revision: D4906382 fbshipit-source-id: 1696c3e7fe07c84a3a497740dc87a237d9b71d1e
This commit is contained in:
committed by
Facebook Github Bot
parent
4ab4df07af
commit
c6f5717d2b
@@ -59,19 +59,19 @@ type ModuleishCache<TModule, TPackage> = {
|
||||
|
||||
type MatchFilesByDirAndPattern = (dirName: string, pattern: RegExp) => Array<string>;
|
||||
|
||||
type Options<TModule, TPackage> = {
|
||||
dirExists: DirExistsFn,
|
||||
entryPath: string,
|
||||
extraNodeModules: ?Object,
|
||||
hasteFS: HasteFS,
|
||||
helpers: DependencyGraphHelpers,
|
||||
matchFiles: MatchFilesByDirAndPattern,
|
||||
moduleCache: ModuleishCache<TModule, TPackage>,
|
||||
moduleMap: ModuleMap,
|
||||
platform: string,
|
||||
platforms: Set<string>,
|
||||
preferNativePlatform: boolean,
|
||||
};
|
||||
type Options<TModule, TPackage> = {|
|
||||
+dirExists: DirExistsFn,
|
||||
+entryPath: string,
|
||||
+extraNodeModules: ?Object,
|
||||
+hasteFS: HasteFS,
|
||||
+helpers: DependencyGraphHelpers,
|
||||
+matchFiles: MatchFilesByDirAndPattern,
|
||||
+moduleCache: ModuleishCache<TModule, TPackage>,
|
||||
+moduleMap: ModuleMap,
|
||||
+platform: string,
|
||||
+platforms: Set<string>,
|
||||
+preferNativePlatform: boolean,
|
||||
|};
|
||||
|
||||
/**
|
||||
* It may not be a great pattern to leverage exception just for "trying" things
|
||||
|
||||
Reference in New Issue
Block a user