From d0bc78bc9c82c75ed658fa4450d8822f723e89a0 Mon Sep 17 00:00:00 2001 From: Adam Radestock Date: Wed, 9 Nov 2022 20:45:12 +0000 Subject: [PATCH] Fix config type import The config type import was `ElectronCapacitorConfig` but should be `CapacitorElectronConfig` --- docs-site/docs/configoptions.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docs-site/docs/configoptions.md b/docs-site/docs/configoptions.md index 5b10dd5a..2f24bb08 100644 --- a/docs-site/docs/configoptions.md +++ b/docs-site/docs/configoptions.md @@ -4,14 +4,14 @@ sidebar_position: 4 # Config Options -You can use the options below in the `capacitor.config.ts` file under the `electron` prop. Please use `ElectronCapacitorConfig` exported from `@capacitor-community/electron` instead of `CapacitorConfig` from `@capacitor/cli`.\ +You can use the options below in the `capacitor.config.ts` file under the `electron` prop. Please use `CapacitorElectronConfig` exported from `@capacitor-community/electron` instead of `CapacitorConfig` from `@capacitor/cli`.\ All options are optional and can be omitted if you do not require them. The `backgroundColor` property will also be used to configure the Electron window color.\ Furthermore, you can edit and tinker with the `electron/src/index.ts` file as more is exposed to the developer as of V3. ```typescript -import { ElectronCapacitorConfig } from '@capacitor-community/electron'; +import { CapacitorElectronConfig } from '@capacitor-community/electron'; -const config: ElectronCapacitorConfig = { +const config: CapacitorElectronConfig = { ..., electron: { // Custom scheme for your app to be served on in the electron window. @@ -33,4 +33,4 @@ const config: ElectronCapacitorConfig = { }; export default config; -``` \ No newline at end of file +```