Fix some script bugs
This commit is contained in:
Vendored
+6
-1
@@ -33,7 +33,12 @@ interface AssetEntry {
|
||||
/** Event proxy — subscribe up to 4 callbacks for when loading fails. */
|
||||
readonly onError: AssetEventProxy;
|
||||
/**
|
||||
* Blocks until the entry reaches `LOADED` (or `ERROR`).
|
||||
* Returns a Promise that resolves when the entry is loaded, or rejects on
|
||||
* error. Use with `await`.
|
||||
*/
|
||||
loaded(): Promise<void>;
|
||||
/**
|
||||
* Blocks (spin-waits) until the entry reaches `LOADED` (or `ERROR`).
|
||||
* Returns `this` for chaining.
|
||||
* @throws If the load fails.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user