mirror of
https://github.com/wavetermdev/wails.git
synced 2026-08-05 13:53:43 -07:00
added interface{} test case and fixed
This commit is contained in:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user