5
0
mirror of https://github.com/wailsapp/wails.git synced 2025-05-02 17:22:01 +08:00
wails/v2/internal
Jeremy Jay c4fdfd6415
Fix miscellaneous bindings and typescript export bugs (#3978)
* Do not attempt to export fields that cannot be json-encoded

* update changelog w/ PR

* also skip UnsafePointers

* WIP to allow conversion from Go generic types to typescript

* support for non-primitive generics also :)

* fix generic types in parameters / return args

* fixes a namespacing bug when mapping to pointer to struct

* fixing invalid knownstructs

* found a place it mattered, pushing the star replacement to the generate side

* descend as much as necessary to find structs

caught these examples in http.Request.TLS:

PeerCertificates []*x509.Certificate
VerifiedChains [][]*x509.Certificate

* accidently reverted other fix

* switch syntax for typescript record outputs

prior syntax is primarily useful for naming keys
so not useful here, and this syntax avoids square
brackets in output which greatly simplifies
generation for Go generics

* better handle edge cases for nested arrays and slices

* lots o tests

* update changelog

---------

Co-authored-by: Lea Anthony <lea.anthony@gmail.com>
2025-01-13 20:14:54 +11:00
..
app Add support for interface generation and enums (#3047) 2023-11-26 06:50:49 +11:00
binding Fix miscellaneous bindings and typescript export bugs (#3978) 2025-01-13 20:14:54 +11:00
colour feature/turn off color terminal output of dev command (#1947) 2022-10-20 21:11:20 +11:00
frontend Ensure showHiddenFiles works with directory dialog (#3904) 2025-01-11 14:35:12 +11:00
fs [chore] lint fixes 2023-11-12 12:30:49 +11:00
github [chore] lint fixes 2023-11-12 12:30:49 +11:00
go-common-file-dialog More syscall fixes (#3713) 2024-09-02 19:34:22 +10:00
gomod [chore] lint fixes 2023-11-12 12:30:49 +11:00
goversion update go minimum version (#3285) 2024-03-24 17:00:11 +11:00
logger [chore] lint fixes 2023-11-12 12:30:49 +11:00
menumanager chore: fix some comments (#3932) 2024-12-06 14:35:46 +11:00
platform Remove all systray related for v2. (#2329) 2023-01-26 18:11:31 +11:00
process [chore] lint fixes 2023-11-12 12:30:49 +11:00
project chore: fix some comments (#3399) 2024-04-17 18:42:53 +10:00
s fix: close copy dst file (#3384) 2024-04-09 17:34:43 -05:00
shell [chore] lint fixes 2023-11-12 12:30:49 +11:00
signal [chore] lint fixes 2023-11-12 12:30:49 +11:00
staticanalysis Bump the go_modules group across 2 directories with 1 update (#3408) 2024-11-17 20:55:06 +11:00
system Fix doctor command not finding pkg-config on Solus (#3670) 2024-08-10 17:27:37 +10:00
typescriptify Fix miscellaneous bindings and typescript export bugs (#3978) 2025-01-13 20:14:54 +11:00
webview2runtime [chore] lint fixes 2023-11-12 12:30:49 +11:00
wv2installer [chore] Use webview2 package (#2687) 2023-06-10 17:04:31 +10:00