Repository navigation
update Electron to 1.6.11 - #1430
Conversation
|
|
||
| declare namespace NodeJS { | ||
| interface Process extends EventEmitter { | ||
| on(event: 'uncaughtException', listener: (error: Error) => void): this; |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
|
|
||
| declare namespace Electron { | ||
| interface MenuItem { | ||
| accelerator?: Electron.Accelerator; |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
|
|
||
| // these methods have been marked with optional parameters, where we hadn't assumed this before | ||
| interface App { | ||
| makeSingleInstance(callback: (argv: string[], workingDirectory: string) => void): void; |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
👍 |
|
Hey @shiftkey can you give this a try and let me know if you're still seeing any errors? |
|
@zeke with that declaration the compilation here passes 🤘 |
Glad to hear it. I want to reproduce the failures you're seeing in desktop, but when I What steps can I take in desktop/desktop to repro? |
|
@zeke you might need to |
|
electron/electron#9484 backports the |
1.6.10 is now out and the only changes from 1.6.9 are doc fixes for the typescript definition file. |
|
@zeke @kevinsawicki I opened electron/typescript-definitions#54 to track a case that wasn't supported with the old definitions that I'd hoped was fixed. But we can workaround that for now rather than wait another week. |
0e582ec to
83a2581
Compare
|
Looks like something affects the unit tests task (this happens after the tests have all passed, blocking the unit tests from completing and thus the integration tests): And of course the stack trace isn't helpful at all: |
|
I opened a PR on electron-mocha that should fix this: jprichardson/electron-mocha#105 |
|
After updating |
| function getAccelerator(menuItem: Electron.MenuItem): string | null { | ||
| if (menuItem.accelerator) { | ||
| return menuItem.accelerator | ||
| return menuItem.accelerator as string |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
|
Ready for review 🔴 |
|
🎉 |
|
@shiftkey can you distill this upgrade experience into a few words? Wondering if there's anything the Electron team can do to make these migrations easier for others. |
|
@zeke most of the pain was around the differences in type declarations. A resource for migrating from the existing
There's still these customizations that should live upstream somewhere (whether in |


So I was able to workaround much of the incompatibilities between the two type declarations, with some rough edges called out. It'd be nice to ensure the rough edges are sorted before merging, rather than letting it hang around.
@desktop/electron where's the best place to report these issues upstream - an open issue on
electron-typescript-declarationswalking through the samples and cross-referencing the API docs that need to be updated so it all flows through? Or something else?Fixes #671
TODO: