From cb4ba5bca63406aafb54966ad409298c9b716797 Mon Sep 17 00:00:00 2001 From: Lea Anthony Date: Sun, 12 Jun 2022 14:57:45 +1000 Subject: [PATCH] Add Typescript troubleshooting guide --- website/docs/guides/troubleshooting.mdx | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/website/docs/guides/troubleshooting.mdx b/website/docs/guides/troubleshooting.mdx index 1ab08d6f3..b355f2389 100644 --- a/website/docs/guides/troubleshooting.mdx +++ b/website/docs/guides/troubleshooting.mdx @@ -22,7 +22,7 @@ If your built application looks like this in finder:

-it's likely that your application's `info.plist` is invalid. Update the file in `build/.app/Contents/info.plist` +it''s likely that your application''s `info.plist` is invalid. Update the file in `build/.app/Contents/info.plist` and check if the data is valid, EG check the binary name is correct. To persist the changes, copy the file back to the `build/darwin` directory. @@ -56,7 +56,7 @@ window.go.main.App.TestFunc(msg, args).then((result) => { //without the 3 dots ``` Credit: https://github.com/wailsapp/wails/issues/1186 -## I'm having getting proxy errors when trying to install Wails +## I''m having getting proxy errors when trying to install Wails If you are getting errors like this: ``` @@ -68,4 +68,10 @@ The solution is to set up the proxy manually, eg: go env -w GO111MODULE=on go env -w GOPROXY=https://goproxy.cn,direct ``` -Source: https://github.com/wailsapp/wails/issues/1233 \ No newline at end of file +Source: https://github.com/wailsapp/wails/issues/1233 + +## The generated Typescript doesn''t have the correct types + +Sometimes the generated Typescript doesn''t have the correct types. To mitigate this, +it is possible to specify what types should be generated using the `ts_type` struct tag. For +more details, please read [this](https://github.com/tkrajina/typescriptify-golang-structs#custom-types). \ No newline at end of file