MCPcopy Index your code
hub / github.com/ionic-team/capacitor / check

Function check

cli/src/common.ts:16–22  ·  view source on GitHub ↗
(checks: CheckFunction[])

Source from the content-addressed store, hash-verified

14export type CheckFunction = () => Promise<string | null>;
15
16export async function check(checks: CheckFunction[]): Promise<void> {
17 const results = await Promise.all(checks.map((f) => f()));
18 const errors = results.filter((r) => r != null) as string[];
19 if (errors.length > 0) {
20 throw errors.join('\n');
21 }
22}
23
24export async function checkWebDir(config: Config): Promise<string | null> {
25 // We can skip checking the web dir if a server URL is set.

Callers 7

doctorAndroidFunction · 0.90
doctorIOSFunction · 0.90
updateCommandFunction · 0.90
migrateToSPMFunction · 0.90
initCommandFunction · 0.90
addCommandFunction · 0.90
syncCommandFunction · 0.90

Calls 1

fFunction · 0.85

Tested by

no test coverage detected