summaryrefslogtreecommitdiff
path: root/docs/guide/typescript/cli-app.md
diff options
context:
space:
mode:
authorAylur <[email protected]>2024-12-25 02:36:28 +0100
committerAylur <[email protected]>2024-12-25 02:36:28 +0100
commitf00e558c6af391bc7ae0b64190da37f876f12c79 (patch)
treebfda44155b326c66cbd2b986c0316515120140d9 /docs/guide/typescript/cli-app.md
parent22ab42c2bb5532064d704931729ddba089dd7276 (diff)
docs: add gtk4 jsx documentation
Diffstat (limited to 'docs/guide/typescript/cli-app.md')
-rw-r--r--docs/guide/typescript/cli-app.md6
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