feat: add parallel

This commit is contained in:
2025-06-04 18:51:00 +09:00
parent 9612261f4b
commit 0e488a836a
4 changed files with 17 additions and 4 deletions

View File

@@ -1,6 +1,6 @@
{
"name": "computercraft-ts",
"version": "1.0.11",
"version": "1.0.12",
"description": "",
"license": "ISC",
"author": "",
@@ -22,5 +22,6 @@
"typescript-to-lua": "^1.31.1",
"typescript-tstl-plugin": "^0.3.2"
},
"packageManager": "pnpm@10.11.0+sha512.6540583f41cc5f628eb3d9773ecee802f4f9ef9923cc45b69890fb47991d4b092964694ec3a4f738a420c918a333062c8b925d312f42e4f0c263eb603551f977"
"packageManager": "pnpm@10.11.0+sha512.6540583f41cc5f628eb3d9773ecee802f4f9ef9923cc45b69890fb47991d4b092964694ec3a4f738a420c918a333062c8b925d312f42e4f0c263eb603551f977",
"dependencies": {}
}

4
pnpm-lock.yaml generated
View File

@@ -7,6 +7,10 @@ settings:
importers:
.:
dependencies:
computercraft-ts:
specifier: 'link:'
version: 'link:'
devDependencies:
'@eslint/js':
specifier: ^9.27.0

View File

@@ -8,7 +8,7 @@
"plugins": [{ "name": "typescript-tstl-plugin" }],
"outDir": "dist",
"types": ["./types/index", "@typescript-to-lua/language-extensions"],
"noImplicitAny": false
"noImplicitAny": true
},
"tstl": {
"luaTarget": "5.4",

10
types/index.d.ts vendored
View File

@@ -5,7 +5,7 @@
* Based on documentation from https://tweaked.cc/
*/
export {};
export { };
/** @noSelf **/
declare global {
@@ -64,6 +64,14 @@ declare global {
*/
export const _CC_DEFAULT_SETTINGS: string;
/**
* A simple way to run several functions at once.
*/
namespace parallel {
function waitForAny(...functions: ((...args: any) => any)[]): void;
function waitForAll(...functions: ((...args: any) => any)[]): void;
}
/**
* Colors API
* Constants and functions for colour values, suitable for working with term and redstone.