mirror of
https://github.com/MincoMK/computercraft-ts.git
synced 2025-12-10 06:23:19 +00:00
feat: add parallel
This commit is contained in:
@@ -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
4
pnpm-lock.yaml
generated
@@ -7,6 +7,10 @@ settings:
|
||||
importers:
|
||||
|
||||
.:
|
||||
dependencies:
|
||||
computercraft-ts:
|
||||
specifier: 'link:'
|
||||
version: 'link:'
|
||||
devDependencies:
|
||||
'@eslint/js':
|
||||
specifier: ^9.27.0
|
||||
|
||||
@@ -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
10
types/index.d.ts
vendored
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user