backend.ai-webui
backend.ai-webui copied to clipboard
Use type alias to `listCondition` for validation.
Is your feature request related to a problem? Please describe.
Most of the components that import backend-ai-list-status have listCondition property. The listCondition property can only be specified as loading or no-data. Therefore, use the type alias so that the IDE's compile can determine whether it is a valid value or not.
Describe the solution you'd like
Using the type alias, check listCondition value is valid or not.
Additional context Feedback from @lizable https://github.com/lablup/backend.ai-webui/pull/1441#discussion_r957065637. Thanks a lot!