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.