MCPcopy
hub / github.com/ionic-team/capacitor / getKnownPlatforms

Function getKnownPlatforms

cli/src/common.ts:311–313  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

309}
310
311export async function getKnownPlatforms(): Promise<string[]> {
312 return ['web', 'android', 'ios'];
313}
314
315export async function isValidPlatform(platform: string): Promise<boolean> {
316 return (await getKnownPlatforms()).includes(platform);

Callers 3

addCommandFunction · 0.90
isValidPlatformFunction · 0.85
promptForPlatformFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected