Skip to content

Commit 2b4a35f

Browse files
committed
Improve typescript doc
1 parent 6a61e6c commit 2b4a35f

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

i18n/en-US/articles/typescript.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ import Nullstack, {NullstackClientContext, NullstackServerContext} from 'nullsta
1919
class TypeScript extends Nullstack {
2020

2121
// ...
22-
async serverFunction(context: NullstackServerContext) {}
22+
async serverFunction(context?: NullstackServerContext) {}
2323

24-
async clientFunction(context: NuNullstackClientContextls) {}
24+
async clientFunction(context?: NuNullstackClientContextls) {}
2525
// ...
2626

2727
}

i18n/pt-BR/articles/typescript.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@ import Nullstack, {
2121

2222
class TypeScript extends Nullstack {
2323
// ...
24-
async serverFunction(context: NullstackServerContext) {}
24+
async serverFunction(context?: NullstackServerContext) {}
2525

26-
async clientFunction(context: NullstackClientContext) {}
26+
async clientFunction(context?: NullstackClientContext) {}
2727
// ...
2828
}
2929
```

0 commit comments

Comments
 (0)