diff options
author | Aylur <[email protected]> | 2024-12-25 02:36:28 +0100 |
---|---|---|
committer | Aylur <[email protected]> | 2024-12-25 02:36:28 +0100 |
commit | f00e558c6af391bc7ae0b64190da37f876f12c79 (patch) | |
tree | bfda44155b326c66cbd2b986c0316515120140d9 /docs/guide/typescript/cli-app.md | |
parent | 22ab42c2bb5532064d704931729ddba089dd7276 (diff) |
docs: add gtk4 jsx documentation
Diffstat (limited to 'docs/guide/typescript/cli-app.md')
-rw-r--r-- | docs/guide/typescript/cli-app.md | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/guide/typescript/cli-app.md b/docs/guide/typescript/cli-app.md index 9b299aa..41b1d7c 100644 --- a/docs/guide/typescript/cli-app.md +++ b/docs/guide/typescript/cli-app.md @@ -26,7 +26,7 @@ App.start({ ## Instance identifier -You can run multiple instance by defining a unique instance name. +You can run multiple instances by defining a unique instance name. ```ts App.start({ @@ -44,7 +44,7 @@ you can do so by sending a message. App.start({ requestHandler(request: string, res: (response: any) => void) { if (request == "say hi") { - res("hi cli") + return res("hi cli") } res("unknown command") }, @@ -140,7 +140,7 @@ App.start({ // every subsequent calls client(message: (msg: string) => string, ...args: Array<string>) { const res = message("you can message the main instance") - console.log(res) + print(res) }, // this runs in the main instance |