Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

electron-api.json main/renderer process fields always true #21290

Closed
tong opened this issue Nov 26, 2019 · 1 comment
Closed

electron-api.json main/renderer process fields always true #21290

tong opened this issue Nov 26, 2019 · 1 comment

Comments

@tong
Copy link

tong commented Nov 26, 2019

  • [ x] I have read the Contributing Guidelines for this project.
  • [x ] I agree to follow the Code of Conduct that this project adheres to.
  • [x ] I have searched the issue tracker for an issue that matches the one I want to file, without success.

Issue Details

  • Electron Version:
    • 7.*
  • Last Known Working Electron version:
    • 6.*

Since electron v7.* electron-api.json defines all process fields as true.
Therefore (any) generators are unable to distinguish which types are only available in main or renderer process.

"process": {
  "main": true,
  "renderer": true
},

This breaks the package generation for haxe types definitions: #tong/hxelectron/issues/46.

@MarshallOfSound
Copy link
Member

This is piece of work that hasn't been done yet in the docs-parser project.

https://github.com/electron/docs-parser/blob/d4d62e1ac0c32f732d0bde55e2ca06116490875b/src/DocsParser.ts#L164-L168

This issue should be raised on the docs-parser (or even better a Pull Request 😄 )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants