Skip to content

Per-OS methods such as BrowserWindow.setHiddenInMissionControl do not match TypeScript signatures #45028

Open
@anaisbetts

Description

Preflight Checklist

Electron Version

33.2.1

What operating system(s) are you using?

Windows, macOS, Other Linux

Operating System Version

n/a

What arch are you using?

x64

Last Known Working Electron version

No response

Expected Behavior

Methods like setHiddenInMissionControl appear to be defined according to the TypeScript definitions, but are not defined on certain platforms. Rather than leaving these undefined, all APIs should be defined on all platforms and simply no-op on ones that don't make any sense.

Actual Behavior

Calling setHiddenInMissionControl on Windows results in method not defined, which is a Surprising Behavior

Testcase Gist URL

No response

Additional Information

No response

Metadata

Assignees

No one assigned

    Type

    Projects

    • Status

      👍 Does Not Block Stable

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions