gtavjs-ts-bundler
v1.0.2
Published
Bundle GTAVJS mod declaration files into a multi-modules index.d.ts file.
Downloads
1
Maintainers
Readme
GTAVJS TS Bundler
Bundle GTAVJS mod declaration files into a multi-modules index.d.ts file.
GTAVJS|Typing|Template|Wiki ---|---|---|---
About GTAVJS
- Create single-player mods using Typescript.
- Add your own DLL Assemblies and generate typing directly in-game.
- Reload mods faster using F9, it doesn't need to reload the AppDomain.
- Quick project setup, simply use this template and you are good to go.
- Complete typing for ScriptHookVDotNet3 and LemonUI included.
- Generate typing for your mods and share them using npm.
Module Usage
Install in mod project
npm install gtavjs-ts-bundler
Use from the root of the mod directory
node node_modules/gtavjs-ts-bundler --declarationDir scripts/ --outputFile index.d.ts
Global Usage
Install Globally
npm install -g gtavjs-ts-bundler
Use from the root of the mod directory
gtavjs-ts-bundler --declarationDir scripts/ --outputFile index.d.ts
Parameters
declarationDir
name: --declarationDir
alias: -i
type: String
defaultValue: scripts/
outputFile
name: --outputFile
alias: -o
type: String
defaultValue: index.d.ts