5
0
mirror of https://github.com/wailsapp/wails.git synced 2025-05-03 06:39:30 +08:00
wails/v2/internal/binding/binding_test
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
..
binding_test_import Add support for interface generation and enums (#3047) 2023-11-26 06:50:49 +11:00
binding_anonymous_sub_struct_multi_level_test.go Fixed issue where createFrom would misidentify strings as arrays (#3435) 2024-04-27 16:30:04 +10:00
binding_anonymous_sub_struct_test.go Fixed issue where createFrom would misidentify strings as arrays (#3435) 2024-04-27 16:30:04 +10:00
binding_conflicting_package_name_test.go Add support for interface generation and enums (#3047) 2023-11-26 06:50:49 +11:00
binding_deepelements_test.go Fix miscellaneous bindings and typescript export bugs (#3978) 2025-01-13 20:14:54 +11:00
binding_emptystruct_test.go Fixed issue where createFrom would misidentify strings as arrays (#3435) 2024-04-27 16:30:04 +10:00
binding_escapedname_test.go Fix binding generation special cases (#1902) 2022-10-01 15:49:51 +10:00
binding_generics_test.go Fix miscellaneous bindings and typescript export bugs (#3978) 2025-01-13 20:14:54 +11:00
binding_ignored_test.go Fix miscellaneous bindings and typescript export bugs (#3978) 2025-01-13 20:14:54 +11:00
binding_importedenum_test.go Add support for interface generation and enums (#3047) 2023-11-26 06:50:49 +11:00
binding_importedmap_test.go Fix miscellaneous bindings and typescript export bugs (#3978) 2025-01-13 20:14:54 +11:00
binding_importedslice_test.go Fixed issue where createFrom would misidentify strings as arrays (#3435) 2024-04-27 16:30:04 +10:00
binding_importedstruct_test.go Fixed issue where createFrom would misidentify strings as arrays (#3435) 2024-04-27 16:30:04 +10:00
binding_multiplestructs_test.go Sort structs in models.ts. Fixes #1958 (#1961) 2022-10-14 07:50:22 +11:00
binding_nestedfield_test.go Fixed issue where createFrom would misidentify strings as arrays (#3435) 2024-04-27 16:30:04 +10:00
binding_nonstringmapkey_test.go Fix miscellaneous bindings and typescript export bugs (#3978) 2025-01-13 20:14:54 +11:00
binding_notags_test.go Do not attempt to export fields that cannot be json-encoded (#3975) 2025-01-10 15:11:13 +11:00
binding_returned_promises_test.go Add support for interface generation and enums (#3047) 2023-11-26 06:50:49 +11:00
binding_singlefield_test.go Fix binding generation special cases (#1902) 2022-10-01 15:49:51 +10:00
binding_structwithoutfields_test.go Bindingings for empty go structs (#3489) 2024-05-18 07:39:27 +10:00
binding_test.go Fix miscellaneous bindings and typescript export bugs (#3978) 2025-01-13 20:14:54 +11:00
binding_tsgeneration_test.go Bindingings for empty go structs (#3489) 2024-05-18 07:39:27 +10:00
binding_type_alias_test.go Fix miscellaneous bindings and typescript export bugs (#3978) 2025-01-13 20:14:54 +11:00
binding_variablespecialcharacter_test.go Special chars bindings unit tests (#3485) 2024-05-17 18:32:54 +10:00