mirror of
https://github.com/MincoMK/computercraft-ts.git
synced 2025-12-10 06:23:19 +00:00
fix: move sleep to OS
This commit is contained in:
@@ -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
12
types/index.d.ts
vendored
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user