From 0e488a836aaa75467ccea3b7824d2ecd1a2ea41d Mon Sep 17 00:00:00 2001 From: mincomk Date: Wed, 4 Jun 2025 18:51:00 +0900 Subject: [PATCH] feat: add parallel --- package.json | 5 +++-- pnpm-lock.yaml | 4 ++++ tsconfig.json | 2 +- types/index.d.ts | 10 +++++++++- 4 files changed, 17 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index 644d23c..ba5e611 100644 --- a/package.json +++ b/package.json @@ -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": {} } diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 110c300..ef6d0b1 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -7,6 +7,10 @@ settings: importers: .: + dependencies: + computercraft-ts: + specifier: 'link:' + version: 'link:' devDependencies: '@eslint/js': specifier: ^9.27.0 diff --git a/tsconfig.json b/tsconfig.json index 965d899..01171d3 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -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", diff --git a/types/index.d.ts b/types/index.d.ts index c843f8a..640b5a4 100644 --- a/types/index.d.ts +++ b/types/index.d.ts @@ -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.