From 2f674ff43e1e5903d906b966f8efc13da6b12c73 Mon Sep 17 00:00:00 2001 From: mincomk Date: Wed, 4 Jun 2025 04:04:31 +0900 Subject: [PATCH] fix: add redstone.getSides() --- package.json | 2 +- types/index.d.ts | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 761c239..153c715 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "computercraft-ts", - "version": "1.0.2", + "version": "1.0.3", "description": "", "license": "ISC", "author": "", diff --git a/types/index.d.ts b/types/index.d.ts index e18c605..b23432e 100644 --- a/types/index.d.ts +++ b/types/index.d.ts @@ -1116,6 +1116,12 @@ declare global { * Get and set redstone signals adjacent to this computer. */ namespace redstone { + /** + * Returns a table containing the six sides of the computer. Namely, "top", "bottom", "left", "right", "front" and "back". + * @returns A table of valid sides. + */ + function getSides(): string[]; + /** * Gets the current redstone output on a specific side. * @param side The side to get