You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
type ListData[T interface{}] struct {
Total int64 `json:"Total"`
TotalPage int64 `json:"TotalPage"`
PageNum int `json:"PageNum"`
List T `json:"List,omitempty"`
}
Such a structure is wrong when converted to ts
To Reproduce
D:\work\gowork\alctserver> wails dev -m 2024/11/22 10:57:02Wails CLI v2.9.2
Description
Such a structure is wrong when converted to ts
To Reproduce
D:\work\gowork\alctserver> wails dev -m 2024/11/22 10:57:02Wails CLI v2.9.2
• Generating bindings: 2024/11/22 10:57:11 KnownStructs: models.ListSearchReq pkg.ListData[[]*alctgo/model pkg.PageParams pkg.Res[alctgo/pkg.ListData[[]*alctgo/model.AlctDriverNew]] pkg.Res[string]
pkg.ListData[alctgo/model.AlctDriverNew]
Expected behaviour
wailsjs/go/main/App.d.ts(14,95): error TS1005: ']' expected.
wailsjs/go/models.ts(20,23): error TS1005: '{' expected.
wailsjs/go/models.ts(20,55): error TS1005: ';' expected.
wailsjs/go/models.ts(24,11): error TS1109: Expression expected.
wailsjs/go/models.ts(24,33): error TS1011: An element access expression should take an argument.
wailsjs/go/models.ts(26,6): error TS1128: Declaration or statement expected.
wailsjs/go/models.ts(26,30): error TS1005: ',' expected.
wailsjs/go/models.ts(26,42): error TS1005: ';' expected.
Screenshots
No response
Attempted Fixes
No response
System Details
Additional context
No response
The text was updated successfully, but these errors were encountered: