CC-Types: Typescript Definitions for ComputerCraft Lua

CC-Types

This repo contains type definitions for ComputerCraft:Tweaked.

Feel free to make a pull request containing improvements or missing implimentations.

Installation

Install the package

npm install --include=dev @mechazawa/cc-types

Modify your tsconfig.json

{
  "compilerOptions": {
+   "types": [
+     "@typescript-to-lua/language-extensions",
+     "@mechazawa/cc-types"
+   ]
  }
}

Progress

Done:

  •  Globals
    •  _G
    •  colors
    •  colours
    •  commands
    •  disk
    •  fs
    •  gps
    •  help
    •  http
    •  io
    •  keys
    •  multishell
    •  os
    •  paintutils
    •  parallel
    •  peripheral
    •  pocket
    •  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

Download Details:

Author: Mechazawa
Source Code: https://github.com/Mechazawa/cc-types 
License: MIT license

#lua #type #typescript 

CC-Types: Typescript Definitions for ComputerCraft Lua
7.85 GEEK