* Gracefully handle the scenario where workspace rules for a monitor are undefined. * Added type definitions to function outputs.
* Gracefully handle the scenario where workspace rules for a monitor are undefined. * Added type definitions to function outputs.