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

Function formatConfigTS

cli/src/config.ts:481–488  ·  view source on GitHub ↗
(extConfig: ExternalConfig)

Source from the content-addressed store, hash-verified

479}
480
481function formatConfigTS(extConfig: ExternalConfig): string {
482 // TODO: <reference> tags
483 return `import type { CapacitorConfig } from '@capacitor/cli';
484
485const config: CapacitorConfig = ${formatJSObject(extConfig)};
486
487export default config;\n`;
488}

Callers 1

writeConfigFunction · 0.85

Calls 1

formatJSObjectFunction · 0.90

Tested by

no test coverage detected