optional TS fields

master
Paulo Simão 2021-02-06 12:12:18 -03:00
parent fa16e16e9b
commit 7241e5f26e
1 changed files with 1 additions and 1 deletions

View File

@ -162,7 +162,7 @@ async function InvokeOk(path: string, method: HTMLMethod, body?: any): Promise<b
if f.Desc != "" {
b.WriteString(fmt.Sprintf("\t/**\n%s*/\n", f.Desc))
}
b.WriteString(fmt.Sprintf("\t%s:%s\n", strings.ToLower(kf), ftype))
b.WriteString(fmt.Sprintf("\t%s ?: %s\n", strings.ToLower(kf), ftype))
}
b.WriteString(fmt.Sprintf("}\n\n"))