Skip to content

Commit

Permalink
fix: coroutine type
Browse files Browse the repository at this point in the history
  • Loading branch information
eonarheim committed Mar 1, 2024
1 parent 9cca2db commit 947aa90
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/engine/Util/Coroutine.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Engine } from '../Engine';
export type CoroutineGenerator = () => Generator<number | Promise<any>, void, number>;
export type CoroutineGenerator = () => Generator<number | Promise<any> | undefined, void, number>;

/**
* Excalibur coroutine helper, returns a promise when complete. Coroutines run before frame update.
Expand Down

0 comments on commit 947aa90

Please sign in to comment.