All Projects → Exeteres → opc-types

Exeteres / opc-types

Licence: MIT license
OpenComputers and TypeScript

Projects that are alternatives of or similar to opc-types

roboserver
Control OpenComputers robots without writing any code!
Stars: ✭ 52 (+188.89%)
Mutual labels:  opencomputers, openos
OpenPython
Micropython for OpenComputer
Stars: ✭ 41 (+127.78%)
Mutual labels:  opencomputers
typings-sanctuary
*UNMAINTAINED* type definitions (for TypeScript) for JavaScript library Sanctuary
Stars: ✭ 12 (-33.33%)
Mutual labels:  typings
Definitelytyped
The repository for high quality TypeScript type definitions.
Stars: ✭ 37,066 (+205822.22%)
Mutual labels:  typings
dts-css-modules-loader
A small Webpack loader to generate typings for your CSS-Modules
Stars: ✭ 44 (+144.44%)
Mutual labels:  typings
OCRemote
Computer-based storage and automation system for modded Minecraft
Stars: ✭ 21 (+16.67%)
Mutual labels:  opencomputers
DiscordBot-Template
A boilerplate / template for discord.js bots with 100% coverage of Discord API, command handler, error handler based on https://discordjs.guide/
Stars: ✭ 129 (+616.67%)
Mutual labels:  typings
Thistle
6502 based architecture for OpenComputers
Stars: ✭ 26 (+44.44%)
Mutual labels:  opencomputers
tiny-typed-emitter
Fully type-checked NodeJS EventEmitter
Stars: ✭ 96 (+433.33%)
Mutual labels:  typings
Typings
*DEPRECATED* The TypeScript Definition Manager
Stars: ✭ 3,410 (+18844.44%)
Mutual labels:  typings
liftr-tscov
Check the type coverage of any TypeScript project with this easy npm package
Stars: ✭ 28 (+55.56%)
Mutual labels:  typings
discord-api-types
Up to date Discord API Typings, versioned by the API version
Stars: ✭ 270 (+1400%)
Mutual labels:  typings
react-dts-generator
Typescript definitions for React components.
Stars: ✭ 18 (+0%)
Mutual labels:  typings
tadd
📺 Installs packages and automatically finds best Typescript typings
Stars: ✭ 20 (+11.11%)
Mutual labels:  typings
Nex4rius-Programme
Alle meine Programme für OpenComputers
Stars: ✭ 13 (-27.78%)
Mutual labels:  opencomputers
webgpu-seed
🔺🌱 An example on how to render a hello triangle with WebGPU.
Stars: ✭ 178 (+888.89%)
Mutual labels:  typings
Vexatos-Programs
Many of much programming.
Stars: ✭ 15 (-16.67%)
Mutual labels:  opencomputers
discord.d.ts
Typings for the Discord gateway.
Stars: ✭ 24 (+33.33%)
Mutual labels:  typings
mxgraph-road-to-DefinitelyTyped
Community effort followup to provide mxgraph TypeScript type definitions / typings via DefinitelyTyped
Stars: ✭ 23 (+27.78%)
Mutual labels:  typings
FixLanguageTypeJs
Tiny Library for fix problem of language selection in type text.
Stars: ✭ 15 (-16.67%)
Mutual labels:  typings

OpenComputers and TypeScript

TypeScriptToLua TypeScriptToLua
Language
Build status Build status

Introduction

This repository contains type declarations for OpenOS and GUI (and also some of it dependencies).

It is assumed that you will use TypeScriptToLua as a transpiler.

Some examples can be found in the examples folder. Also look at VSCode extension, which integrates TypeScript with OpenComputers.

Installation

# Typings for OpenOS
yarn add @opct/openos # or npm install @opct/openos -S

# Typings for MineOS
yarn add @opct/mineos

# Typings for GUI
yarn add @opct/gui

# TSTL
yarn add typescript-to-lua
// tsconfig.json
{
    "compilerOptions": {
        "target": "esnext",
        "outDir": "dist",
        "module": "commonjs",
        "lib": ["esnext"],
        "strict": true,
        "moduleResolution": "node",
        "rootDir": "src",
        "types": [
            "lua-types/jit",
            "@opct/openos",
            "@opct/gui",
            "@opct/mineos"
        ]
    },
    "tstl": {
        "luaTarget": "JIT"
    }
}

Setting up a comfortable working environment

  • You can use Visual Studio Code or any other editor with TypeScript support.

  • Instead of a real mod, you can use an emulator. Otherwise, it is necessary to set filesystem.bufferChanges to false in order to have external access to the disk.

  • Create a link to the disk to keep the source code separate from it:

    # linux / macos
    ln -s /path/to/disk/home/app dist
    # windows (cmd)
    mklink /j dist C:\path\to\disk\home
  • Use tstl --watch

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].