(config: Config, platformName: string)
| 64 | } |
| 65 | |
| 66 | export async function doctor(config: Config, platformName: string): Promise<void> { |
| 67 | if (platformName === config.ios.name) { |
| 68 | await doctorIOS(config); |
| 69 | } else if (platformName === config.android.name) { |
| 70 | await doctorAndroid(config); |
| 71 | } else if (platformName === config.web.name) { |
| 72 | return Promise.resolve(); |
| 73 | } else { |
| 74 | throw `Platform ${platformName} is not valid.`; |
| 75 | } |
| 76 | } |
no test coverage detected