From 726627803680c678759af92da01634a6b183001e Mon Sep 17 00:00:00 2001 From: mincomk Date: Thu, 5 Jun 2025 14:12:20 +0900 Subject: [PATCH] feat: require --- package.json | 2 +- types/index.d.ts | 9 ++++++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index ba5e611..6b2fadf 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "computercraft-ts", - "version": "1.0.12", + "version": "1.0.13", "description": "", "license": "ISC", "author": "", diff --git a/types/index.d.ts b/types/index.d.ts index 640b5a4..4bde1f8 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 { @@ -35,6 +35,13 @@ declare global { */ export function printError(...args: any[]): void; + /** + * Loads a lua module. + * @param name Name of the lua module + * @returns The module + */ + export function require(name: string): any; + /** * Reads user input from the terminal. This automatically handles arrow keys, pasting, * character replacement, history scrollback, auto-completion, and default values.