mirror of
https://github.com/MincoMK/computercraft-ts.git
synced 2025-12-10 06:23:19 +00:00
feat: require
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "computercraft-ts",
|
||||
"version": "1.0.12",
|
||||
"version": "1.0.13",
|
||||
"description": "",
|
||||
"license": "ISC",
|
||||
"author": "",
|
||||
|
||||
7
types/index.d.ts
vendored
7
types/index.d.ts
vendored
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user