mirror of
https://github.com/MincoMK/computercraft-ts.git
synced 2025-12-10 06:23:19 +00:00
fix: multi return
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "computercraft-ts",
|
"name": "computercraft-ts",
|
||||||
"version": "1.0.9",
|
"version": "1.0.10",
|
||||||
"description": "",
|
"description": "",
|
||||||
"license": "ISC",
|
"license": "ISC",
|
||||||
"author": "",
|
"author": "",
|
||||||
@@ -13,6 +13,7 @@
|
|||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@eslint/js": "^9.27.0",
|
"@eslint/js": "^9.27.0",
|
||||||
|
"@typescript-to-lua/language-extensions": "^1.19.0",
|
||||||
"eslint": "^9.27.0",
|
"eslint": "^9.27.0",
|
||||||
"globals": "^16.2.0",
|
"globals": "^16.2.0",
|
||||||
"luamin": "^1.0.4",
|
"luamin": "^1.0.4",
|
||||||
|
|||||||
3
pnpm-lock.yaml
generated
3
pnpm-lock.yaml
generated
@@ -11,6 +11,9 @@ importers:
|
|||||||
'@eslint/js':
|
'@eslint/js':
|
||||||
specifier: ^9.27.0
|
specifier: ^9.27.0
|
||||||
version: 9.28.0
|
version: 9.28.0
|
||||||
|
'@typescript-to-lua/language-extensions':
|
||||||
|
specifier: ^1.19.0
|
||||||
|
version: 1.19.0
|
||||||
eslint:
|
eslint:
|
||||||
specifier: ^9.27.0
|
specifier: ^9.27.0
|
||||||
version: 9.28.0
|
version: 9.28.0
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
"strict": true,
|
"strict": true,
|
||||||
"plugins": [{ "name": "typescript-tstl-plugin" }],
|
"plugins": [{ "name": "typescript-tstl-plugin" }],
|
||||||
"outDir": "dist",
|
"outDir": "dist",
|
||||||
"types": ["./types/index"],
|
"types": ["./types/index", "@typescript-to-lua/language-extensions"],
|
||||||
"noImplicitAny": false
|
"noImplicitAny": false
|
||||||
},
|
},
|
||||||
"tstl": {
|
"tstl": {
|
||||||
|
|||||||
2
types/index.d.ts
vendored
2
types/index.d.ts
vendored
@@ -241,7 +241,7 @@ declare global {
|
|||||||
function receive(
|
function receive(
|
||||||
protocolFilter?: string,
|
protocolFilter?: string,
|
||||||
timeout?: number,
|
timeout?: number,
|
||||||
): [number, RednetData, string | null] | null;
|
): LuaMultiReturn<[number, RednetData, string | null]> | null;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Register the system as "hosting" the desired protocol under the specified name. If a rednet lookup is performed for that protocol (and maybe name) on the same network, the registered system will automatically respond via a background process, hence providing the system performing the lookup with its ID number.
|
* Register the system as "hosting" the desired protocol under the specified name. If a rednet lookup is performed for that protocol (and maybe name) on the same network, the registered system will automatically respond via a background process, hence providing the system performing the lookup with its ID number.
|
||||||
|
|||||||
Reference in New Issue
Block a user