Fix typedefs

This commit is contained in:
2026-06-06 19:06:52 -05:00
parent 9edb2aa0c1
commit 47a6f396fa
5 changed files with 51 additions and 68 deletions
+24
View File
@@ -0,0 +1,24 @@
/**
* Copyright (c) 2026 Dominic Masters
*
* This software is released under the MIT License.
* https://opensource.org/licenses/MIT
*/
/**
* Returns a Promise that resolves on the next engine frame.
*
* @example
* await frame();
* Console.print('one frame later');
*/
declare function frame(): Promise<void>;
/**
* Returns a Promise that resolves after `ms` milliseconds of engine time.
*
* @example
* await timeout(500);
* Console.print('half a second later');
*/
declare function timeout(ms: number): Promise<void>;