A helper for extending Scenes as to have known interfaces beyond the generic ones. For example:
type UISceneInstance = SceneInstance & { buttonClicked(name: string) => void;};type UIScene = SceneEx<UISceneInstance>; Copy
type UISceneInstance = SceneInstance & { buttonClicked(name: string) => void;};type UIScene = SceneEx<UISceneInstance>;
Now, a parent composing scene can take in UIScene rather than Scene, and it has no need to cast anything.
A helper for extending Scenes as to have known interfaces beyond the generic ones. For example:
Now, a parent composing scene can take in UIScene rather than Scene, and it has no need to cast anything.