From e22cfc18c96781c21ac431bf9296740762f75977 Mon Sep 17 00:00:00 2001 From: Lea Anthony Date: Wed, 28 Sep 2022 08:32:14 +1000 Subject: [PATCH] Update howdoesitwork.mdx --- website/docs/howdoesitwork.mdx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/website/docs/howdoesitwork.mdx b/website/docs/howdoesitwork.mdx index 717e8e2d2..872e847f3 100644 --- a/website/docs/howdoesitwork.mdx +++ b/website/docs/howdoesitwork.mdx @@ -264,11 +264,12 @@ In the example above, `Greet` only returns a `string` so the Javascript call wil is passed to it. All data types are correctly translated between Go and Javascript. Even structs. If you return a struct from a Go call, -it will be returned to your frontend as a Javascript class. Note: If you wish to use structs, you **must** define -`json` struct tags for your fields! +it will be returned to your frontend as a Javascript class. :::info Note +Struct fields *must* have a valid `json` tag to be included in the generated Typescript. + Anonymous nested structs are not supported at this time. :::