fix(ui): type signature for abstract sync method

This commit is contained in:
psychedelicious
2024-10-09 18:57:47 +10:00
parent ccc1d4417e
commit 115c82231b

View File

@@ -68,7 +68,7 @@ export abstract class CanvasEntityAdapterBase<
*
* If `prevState` is undefined, this is the first time the entity is being synced.
*/
abstract sync: (state: T | undefined, prevState: T | undefined) => void;
abstract sync: (state: T | undefined, prevState: T | undefined) => Promise<void>;
/**
* Gets the canvas element for the entity. If `rect` is provided, the canvas will be clipped to that rectangle.