Migrated remaining tags-related elements to TS

This commit is contained in:
Alejandro Celaya
2020-08-30 20:48:09 +02:00
parent 18883caa6d
commit f8ea1ae3d5
8 changed files with 198 additions and 225 deletions

View File

@@ -1,21 +0,0 @@
import PropTypes from 'prop-types';
const regularServerType = PropTypes.shape({
id: PropTypes.string,
name: PropTypes.string,
url: PropTypes.string,
apiKey: PropTypes.string,
version: PropTypes.string,
printableVersion: PropTypes.string,
serverNotReachable: PropTypes.bool,
});
const notFoundServerType = PropTypes.shape({
serverNotFound: PropTypes.bool.isRequired,
});
/** @deprecated Use SelectedServer type instead */
export const serverType = PropTypes.oneOfType([
regularServerType,
notFoundServerType,
]);