Create the $screen resource object
Get the current screen config (immutable).
If screen is provided, asserts that the current screen matches.
Optionalscreen: keyof ScreensGet the current screen name
Get all registered screen names
Get the screen stack depth
Get the current screen state (mutable).
If screen is provided, asserts that the current screen matches.
Optionalscreen: keyof ScreensCheck if a screen is active (current or in stack)
Check if current screen is an overlay
Pop the current screen and return to the previous one
Push a screen onto the stack (overlay)
Register a screen definition
Transition to a new screen, clearing the stack
Get the current screen config or undefined.
If screen is provided, returns undefined when the current screen doesn't match.
Optionalscreen: keyof ScreensGet the current screen state or undefined.
If screen is provided, returns undefined when the current screen doesn't match.
Optionalscreen: keyof ScreensUpdate the current screen state.
If screen is provided, asserts that the current screen matches.
Optionalscreen: keyof Screens
Manages screen/state transitions for ECSpresso