feat: iter

This commit is contained in:
2025-06-05 14:31:52 +09:00
parent e2974fb53b
commit 2a1178c66f
2 changed files with 5 additions and 2 deletions

View File

@@ -1,6 +1,6 @@
{
"name": "computercraft-ts",
"version": "1.0.14",
"version": "1.0.15",
"description": "",
"license": "ISC",
"author": "",

5
types/index.d.ts vendored
View File

@@ -121,7 +121,10 @@ declare global {
* @returns The line iterator.
*/
function lines(filename?: string, ...args: any[]): () => string | null;
function lines(
filename?: string,
...args: any[]
): LuaIterable<string | null>;
/**
* Open a file with the given mode, either returning a new file handle or nil, plus an error message.