fix(types): add electron.launch.timeout (#8384)

This commit is contained in:
Joel Einbinder 2021-08-23 23:09:47 -04:00 committed by GitHub
parent c355d4d05a
commit 6685f0dd76
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 1 deletions

View File

@ -72,7 +72,7 @@ Current working directory to launch application from.
Specifies environment variables that will be visible to Electron. Defaults to `process.env`. Specifies environment variables that will be visible to Electron. Defaults to `process.env`.
#### option: Electron.launch.timeout ### option: Electron.launch.timeout
- `timeout` <[float]> - `timeout` <[float]>
Maximum time in milliseconds to wait for the application to start. Defaults to `30000` (30 seconds). Pass `0` to disable timeout. Maximum time in milliseconds to wait for the application to start. Defaults to `30000` (30 seconds). Pass `0` to disable timeout.

6
types/types.d.ts vendored
View File

@ -11112,6 +11112,12 @@ export interface Electron {
}; };
}; };
/**
* Maximum time in milliseconds to wait for the application to start. Defaults to `30000` (30 seconds). Pass `0` to disable
* timeout.
*/
timeout?: number;
/** /**
* Changes the timezone of the context. See * Changes the timezone of the context. See
* [ICU's metaZones.txt](https://cs.chromium.org/chromium/src/third_party/icu/source/data/misc/metaZones.txt?rcl=faee8bc70570192d82d2978a71e2a615788597d1) * [ICU's metaZones.txt](https://cs.chromium.org/chromium/src/third_party/icu/source/data/misc/metaZones.txt?rcl=faee8bc70570192d82d2978a71e2a615788597d1)