fix: move sleep to OS

This commit is contained in:
2025-06-04 01:59:45 +09:00
parent 12e06b93ee
commit d7e6405cc2
2 changed files with 8 additions and 8 deletions

View File

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

12
types/index.d.ts vendored
View File

@@ -11,12 +11,6 @@ declare global {
* Global Environment (_G) * Global Environment (_G)
*/ */
/**
* Pauses execution for the specified number of seconds.
* @param time The number of seconds to sleep for, rounded up to the nearest multiple of 0.05.
*/
export function sleep(time: number): void;
/** /**
* Writes a line of text to the screen without a newline at the end, wrapping text if necessary. * Writes a line of text to the screen without a newline at the end, wrapping text if necessary.
* @param text The text to write to the string * @param text The text to write to the string
@@ -1240,6 +1234,12 @@ declare global {
*/ */
function time(locale?: string): number; function time(locale?: string): number;
/**
* Pauses execution for the specified number of seconds.
* @param time The number of seconds to sleep for, rounded up to the nearest multiple of 0.05.
*/
export function sleep(time: number): void;
/** /**
* Returns the day depending on the string passed in. * Returns the day depending on the string passed in.
* @param locale The locale to use * @param locale The locale to use