From dab49b24e620ff1c12d2390db3b73191acc79339 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=81=BF=E3=81=A6=E3=82=8B=E3=81=9E?= Date: Wed, 15 May 2024 19:17:33 +0900 Subject: [PATCH] --- Home.md | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/Home.md b/Home.md index 9121fcd..7243f4f 100644 --- a/Home.md +++ b/Home.md @@ -77,8 +77,8 @@ if (a === b) function the_function ( int $arg_a, - string $arg_b): -bool + string $arg_b) +: bool { hoge (); } @@ -94,4 +94,16 @@ theFunction (argA, argB) { hoge (); } +``` + +TypeScript の場合は,かならず型を明記し,次のやぅにします: +```typescript +function +theFunction ( + argA: number, + argB: string) +: boolean +{ + hoge (); +} ``` \ No newline at end of file