Skip to content

Commit

Permalink
feat(cli): extendable plugin configuration types (#3858)
Browse files Browse the repository at this point in the history
  • Loading branch information
imhoffd authored Nov 30, 2020
1 parent f7dff2e commit f789526
Showing 1 changed file with 22 additions and 1 deletion.
23 changes: 22 additions & 1 deletion cli/src/declarations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,15 @@ export interface CapacitorConfig {
preferences?: { [key: string]: string | undefined };
};

plugins?: { [key: string]: any };
/**
* Configure plugins.
*
* This is an object with configuration values specified by plugin class
* name.
*
* @since 1.0.0
*/
plugins?: PluginsConfig;

/**
* Allowlist of plugins to include during `npx cap sync`.
Expand All @@ -383,3 +391,16 @@ export interface CapacitorConfig {
*/
includePlugins?: string[];
}

export interface PluginsConfig {
/**
* Plugin configuration by class name.
*
* @since 1.0.0
*/
[key: string]:
| {
[key: string]: any;
}
| undefined;
}

0 comments on commit f789526

Please sign in to comment.