microsoft/vscode-react-native
Publicmirrored from https://github.com/microsoft/vscode-react-nativeAvailable
src/typings/exponent/metroConfig.d.ts
29lines · modeblame
242759feJiglioNero5 years ago | 1 | // Type definitions for @expo/metro-config v0.1.54 |
| 2 | // Project: https://github.com/expo/expo-cli/tree/master/packages/metro-config | |
| 3 | | |
| 4 | declare module metroConfig { | |
| 5 | | |
| 6 | interface ILoadOptions { | |
| 7 | config?: string; | |
| 8 | maxWorkers?: number; | |
| 9 | port?: number; | |
| 10 | reporter?: Reporter; | |
| 11 | resetCache?: boolean; | |
| 12 | target?: ProjectTarget; | |
| 13 | } | |
| 14 | | |
| 15 | interface IResolver { | |
| 16 | sourceExts: string[]; | |
| 17 | } | |
| 18 | | |
| 19 | interface IMetroConfig { | |
| 20 | resolver: IResolver; | |
| 21 | } | |
| 22 | | |
| 23 | var loadAsync: (projectRoot: string, { reporter, target, ...metroOptions }?: ILoadOptions) => Promise<IMetroConfig> | |
| 24 | | |
| 25 | } | |
| 26 | | |
| 27 | declare module "metro-config" { | |
| 28 | export = metroConfig; | |
| 29 | } |