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:
The property is called ID but the type only supports Id
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
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
Description
When doing
you can see that the object looks something like this:
The property is called
IDbut the type only supportsIdTo Reproduce
This will encounter the type error
Expected behaviour
I would expect screen.ID to exist and for on type error to occur
Screenshots
Attempted Fixes
No response
System Details
Additional context
No response