microsoft/vscode-react-native
Publicmirrored from https://github.com/microsoft/vscode-react-nativeAvailable
src/typings/exponent/metroConfig.d.ts
30lines · 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 | | |
176f99c8ConnorQi013 months ago | 4 | declare namespace metroConfig { |
242759feJiglioNero5 years ago | 5 | interface ILoadOptions { |
| 6 | config?: string; | |
| 7 | maxWorkers?: number; | |
| 8 | port?: number; | |
| 9 | reporter?: Reporter; | |
| 10 | resetCache?: boolean; | |
| 11 | target?: ProjectTarget; | |
| 12 | } | |
| 13 | | |
| 14 | interface IResolver { | |
| 15 | sourceExts: string[]; | |
| 16 | } | |
| 17 | | |
| 18 | interface IMetroConfig { | |
| 19 | resolver: IResolver; | |
| 20 | } | |
| 21 | | |
176f99c8ConnorQi013 months ago | 22 | var loadAsync: ( |
| 23 | projectRoot: string, | |
| 24 | { reporter, target, ...metroOptions }?: ILoadOptions, | |
| 25 | ) => Promise<IMetroConfig>; | |
242759feJiglioNero5 years ago | 26 | } |
| 27 | | |
| 28 | declare module "metro-config" { | |
| 29 | export = metroConfig; | |
176f99c8ConnorQi013 months ago | 30 | } |