DOCUMENTATION: Fix missing/wrong TSDoc of APIs having optional host parameter (#2371)

This commit is contained in:
catloversg
2025-10-30 01:15:10 +07:00
committed by GitHub
parent 3e75577ded
commit c6e40476bb
27 changed files with 64 additions and 65 deletions
+2 -2
View File
@@ -9,7 +9,7 @@ Get the execution time of a hack() call.
**Signature:**
```typescript
getHackTime(host: string): number;
getHackTime(host?: string): number;
```
## Parameters
@@ -42,7 +42,7 @@ string
</td><td>
Hostname/IP of target server.
_(Optional)_ Hostname/IP of target server. Optional. Defaults to the server the calling script is running on.
</td></tr>