2024-05-15 19:17:33 +09:00
parent 5cdfcb5681
commit dab49b24e6
+14 -2
@@ -77,8 +77,8 @@ if (a === b)
function function
the_function ( the_function (
int $arg_a, int $arg_a,
string $arg_b): string $arg_b)
bool : bool
{ {
hoge (); hoge ();
} }
@@ -94,4 +94,16 @@ theFunction (argA, argB)
{ {
hoge (); hoge ();
} }
```
TypeScript の場合は,かならず型を明記し,次のやぅにします:
```typescript
function
theFunction (
argA: number,
argB: string)
: boolean
{
hoge ();
}
``` ```