wikimedia/mediawiki-extensions-Wikibase

View on GitHub
client/data-bridge/src/definitions/ApplicationStatus.ts

Summary

Maintainability
A
0 mins
Test Coverage
export enum ValidApplicationStatus {
    INITIALIZING = 'initializing',
    READY = 'ready',
    SAVING = 'saving',
    SAVED = 'saved',
}

enum ErrorStatus {
    ERROR = 'error',
}

const ApplicationStatus = {
    ...ValidApplicationStatus,
    ...ErrorStatus,
};

type ApplicationStatus = ValidApplicationStatus | ErrorStatus;
export default ApplicationStatus;