mirror of
https://github.com/wailsapp/wails.git
synced 2026-03-14 14:45:49 +01:00
added interface{} test case and fixed
This commit is contained in:
parent
4118f348f5
commit
f5c3907fac
2 changed files with 7 additions and 0 deletions
|
|
@ -201,6 +201,8 @@ declare global {
|
|||
|
||||
func goTypeToJSDocType(input string) string {
|
||||
switch true {
|
||||
case input == "interface{}":
|
||||
return "any"
|
||||
case input == "string":
|
||||
return "string"
|
||||
case input == "error":
|
||||
|
|
|
|||
|
|
@ -56,6 +56,11 @@ func Test_goTypeToJSDocType(t *testing.T) {
|
|||
input: "bool",
|
||||
want: "boolean",
|
||||
},
|
||||
{
|
||||
name: "interface{}",
|
||||
input: "interface{}",
|
||||
want: "any",
|
||||
},
|
||||
{
|
||||
name: "[]byte",
|
||||
input: "[]byte",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue