Skip to content

bind gen App.d.ts inconsistent with modules.ts #5160

@lysShub

Description

@lysShub

Description

type Message[T any] struct {
	Msg  string
	Data T
}

func (a *App) Userinfo() Message[*string] {
	return Message[*string]{}
}

App.d.ts

export function Userinfo():Promise<main.Message_string_>;

modules.ts

export class Message__string_ 

To Reproduce

_

Expected behaviour

_

Screenshots

No response

Attempted Fixes

No response

System Details

Wails Doctor



# Wails
Version | v2.12.0


# System
┌────────────────────────────────────────────────────────────────────────────┐
| OS           | Windows 10 Pro                                              |
| Version      | 2009 (Build: 19045)                                         |
| ID           | 22H2                                                        |
| Branding     | Windows 10 专业版                                           |
| Go Version   | go1.26.2                                                    |
| Platform     | windows                                                     |
| Architecture | amd64                                                       |
| CPU          | Intel(R) Xeon(R) CPU E5-2698 v3 @ 2.30GHz                   |
| GPU          | NVIDIA GeForce GTX 1060 3GB (NVIDIA) - Driver: 32.0.15.7652 |
| Memory       | 32GB                                                        |
└────────────────────────────────────────────────────────────────────────────┘

# Dependencies
┌───────────────────────────────────────────────────────┐
| Dependency | Package Name | Status    | Version       |
| WebView2   | N/A          | Installed | 147.0.3912.60 |
| Nodejs     | N/A          | Installed | 24.14.1       |
| npm        | N/A          | Installed | 11.11.0       |
| *upx       | N/A          | Available |               |
| *nsis      | N/A          | Installed | v3.09         |
|                                                       |
└─────────────── * - Optional Dependency ───────────────┘

# Diagnosis
Optional package(s) installation details:
  - upx : Available at https://upx.github.io/

 SUCCESS  Your system is ready for Wails development!

 ♥   If Wails is useful to you or your company, please consider sponsoring the project:
https://github.com/sponsors/leaanthony

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugSomething isn't workingDocumentationImprovements or additions to documentationTypescriptv3

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions