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",
|
||||
"version": "1.0.1",
|
||||
"version": "1.0.2",
|
||||
"description": "",
|
||||
"license": "ISC",
|
||||
"author": "",
|
||||
|
||||
14
types/index.d.ts
vendored
14
types/index.d.ts
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user