mirror of
https://github.com/MincoMK/computercraft-ts.git
synced 2025-12-10 06:23:19 +00:00
fix: add redstone.getSides()
This commit is contained in:
6
types/index.d.ts
vendored
6
types/index.d.ts
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user