From d7e6405cc2f534deab318a7471369248cd5b6f2f Mon Sep 17 00:00:00 2001 From: mincomk Date: Wed, 4 Jun 2025 01:59:45 +0900 Subject: [PATCH] fix: move sleep to OS --- package.json | 2 +- types/index.d.ts | 14 +++++++------- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/package.json b/package.json index 506ce59..761c239 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "computercraft-ts", - "version": "1.0.1", + "version": "1.0.2", "description": "", "license": "ISC", "author": "", diff --git a/types/index.d.ts b/types/index.d.ts index 365711b..e18c605 100644 --- a/types/index.d.ts +++ b/types/index.d.ts @@ -3,7 +3,7 @@ * Based on documentation from https://tweaked.cc/ */ -export { }; +export {}; /** @noSelf **/ declare global { @@ -11,12 +11,6 @@ declare global { * 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. * @param text The text to write to the string @@ -1240,6 +1234,12 @@ declare global { */ 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. * @param locale The locale to use