feat: convert all enums to erasable-syntax compliant patterns

Signed-off-by: Paul Schultz <pschultz@pobox.com>
This commit is contained in:
Paul Schultz
2025-10-20 16:17:07 -05:00
parent 479abc1ab8
commit b2bef924b2
26 changed files with 500 additions and 159 deletions
+19 -3
View File
@@ -13,6 +13,8 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/* We want to maintain the same information as an enum, so we disable the redeclaration warning */
/* eslint-disable @typescript-eslint/no-redeclare */
import { JsonValue } from '@backstage/types';
@@ -48,9 +50,23 @@ export type PackageDependency = {
};
/** @public */
export enum ExternalDependencyStatus {
healthy = 'Healthy',
unhealthy = 'Unhealthy',
export const ExternalDependencyStatus = {
healthy: 'Healthy',
unhealthy: 'Unhealthy',
} as const;
/**
* @public
*/
export type ExternalDependencyStatus =
(typeof ExternalDependencyStatus)[keyof typeof ExternalDependencyStatus];
/**
* @public
*/
export namespace ExternalDependencyStatus {
export type healthy = typeof ExternalDependencyStatus.healthy;
export type unhealthy = typeof ExternalDependencyStatus.unhealthy;
}
/** @public */