Skip to content

Property for Screen type is incorrect #3778

@Etesam913

Description

@Etesam913

Description

When doing

import { Window } from "@wailsio/runtime";

const screen = await Window.GetScreen();
console.log(screen);

you can see that the object looks something like this:

Screenshot 2024-09-24 at 10 33 55 PM

The property is called ID but the type only supports Id

Screenshot 2024-09-24 at 10 34 57 PM

To Reproduce

import { Window } from "@wailsio/runtime";


const screen = await Window.GetScreen();
console.log(screen.ID);

This will encounter the type error

Expected behaviour

I would expect screen.ID to exist and for on type error to occur

Screenshots

Screenshot 2024-09-24 at 10 34 57 PM Screenshot 2024-09-24 at 10 33 55 PM

Attempted Fixes

No response

System Details

# System
┌────────────────────────────┐
| Name          | MacOS      |
| Version       | 15.0       |
| ID            | 24A335     |
| Branding      | MacOS 15.0 |
| Platform      | darwin     |
| Architecture  | arm64      |
| Apple Silicon | true       |
| CPU           | Apple M2   |
| CPU           | Unknown    |
| GPU           | Unknown    |
| Memory        | Unknown    |
└────────────────────────────┘

# Build Environment
┌────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
| Wails CLI      | v3.0.0-alpha.7                                                                                                            |
| Go Version     | go1.23.1                                                                                                                  |
| Revision       | df091f02efc5a36a8b388b12ba402771ec0cacb8                                                                                  |
| Modified       | false                                                                                                                     |
| -buildmode     | exe                                                                                                                       |
| -compiler      | gc                                                                                                                        |
| CGO_CFLAGS     |                                                                                                                           |
| CGO_CPPFLAGS   |                                                                                                                           |
| CGO_CXXFLAGS   |                                                                                                                           |
| CGO_ENABLED    | 1                                                                                                                         |
| CGO_LDFLAGS    |                                                                                                                           |
| DefaultGODEBUG | asynctimerchan=1,gotypesalias=0,httpservecontentkeepheaders=1,tls3des=1,tlskyber=0,x509keypairleaf=0,x509negativeserial=1 |
| GOARCH         | arm64                                                                                                                     |
| GOARM64        | v8.0                                                                                                                      |
| GOOS           | darwin                                                                                                                    |
| vcs            | git                                                                                                                       |
| vcs.modified   | false                                                                                                                     |
| vcs.revision   | df091f02efc5a36a8b388b12ba402771ec0cacb8                                                                                  |
| vcs.time       | 2024-09-23T10:36:58Z                                                                                                      |
└────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘

# Dependencies
┌────────────────────────────────────────────────────────────────────────┐
| Xcode cli tools | 2409                                                 |
| npm             | 10.8.3                                               |
| *NSIS           | Not Installed. Install with `brew install makensis`. |
└─────────────────────── * - Optional Dependency ────────────────────────┘

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions