gmod-typescript
gmod-typescript copied to clipboard
Tool to generate typescript definitions for garrysmod.
Did some tinkering to make it work (today at least). There's some pages that has trivial errors that ~~I can't be bothered to edit on the Facepunch wiki~~.
Gmod comes with a number of builtin libraries such as the [string](https://wiki.facepunch.com/gmod/string) library. For example: ``` ts // JavaScript version print("haystack".endsWith("needle")) // Gmod version print(string.EndsWith("haystack","needle")) ``` Both of these functions...
Bumps [fast-xml-parser](https://github.com/NaturalIntelligence/fast-xml-parser) from 3.17.6 to 4.2.4. Release notes Sourced from fast-xml-parser's releases. v4 Generating different combined, parser only, builder only, validator only browser bundles Keeping cjs modules as they can...
The `hook.Run()` function is currently typed as `Run(): void` when it should be `Run(eventName: string, ...args: any[]): any`
There is no way to control script workflow with a **SERVER/CLIENT** realms. Its not exists in TypeScript. https://wiki.facepunch.com/gmod/States There are also some global variables, such as **ENT, SWEP, GM**. However,...
Currently, only numeric or bool defaults are supported for parameters.
Should fix https://github.com/lolleko/gmod-typescript/issues/12 too