docs: TSdoc

This commit is contained in:
2026-09-28 02:05:40 +01:00
parent 40c322e4b7
commit cca07468d5
9 changed files with 336 additions and 11 deletions
+1 -1
View File
@@ -67,7 +67,7 @@ Each interface is one direction. An interface you leave empty stays loose (any n
| `RPCCommands_Client` | - | - | `onCommand` (client) |
| `RPCCommands_Server` | - | - | `onCommand` (server) |
- events: the member name is the event name, its parameters are the arguments, its return type is what `emit*` resolves with. Server listeners get the player id before the declared arguments. Names that are not identifiers work too: `'buy-item'(item: string): boolean`
- events: the member name is the event name, its parameters are the arguments, its return type is what `emit*` resolves with. Server `onClient` and `onWebview` listeners get the player id before the declared arguments. Names that are not identifiers work too: `'buy-item'(item: string): boolean`
- commands: the key is the command name, the value is not used (`true`)
## License