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

14
types/index.d.ts vendored
View File

@@ -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