/** * An interface describing loadable resources in Excalibur. Built-in loadable * resources include {@apilink Texture}, {@apilink Sound}, and a generic {@apilink Resource}. */ export interface Loadable { /** * Data associated with a loadable */ data: T; /** * Begins loading the resource and returns a promise to be resolved on completion */ load(): Promise; /** * Returns true if the loadable is loaded */ isLoaded(): boolean; }