This repo contains type definitions for ComputerCraft:Tweaked.
Feel free to make a pull request containing improvements or missing implimentations.
- Install the package
npm install --include=dev @mechazawa/cc-types
- Modify your
tsconfig.json
{
"compilerOptions": {
+ "types": [
+ "@typescript-to-lua/language-extensions",
+ "@mechazawa/cc-types"
+ ]
}
}
Done:
- Globals
- _G
- colors
-
colours - commands
- disk
- fs
- gps
- help
- http
- io
- keys
- multishell
- os
- paintutils
- parallel
- peripheral
- rednet
- redstone
- settings
- shell
- term
- textutils
- turtle
- vector
- window
- Modules
- cc.audio.dfpwm
- cc.completion
- cc.expect
- cc.image.nft
- cc.pretty
- cc.require
- cc.shell.completion
- cc.strings
- Peripherals
- command
- computer
- drive
- modem
- monitor
- printer
- speaker
- Generic Peripherals
- energy_storage
- fluid_storage
- inventory