// @ts-ignore
import PropTypes from 'prop-types';
const ASC = 'asc';
const DESC = 'desc';
export const SortDirection = Object.freeze({
    ASC,
    DESC,
    isAsc(direction) {
        return direction === ASC;
    },
    reverse(direction) {
        return this.isAsc(direction) ? DESC : ASC;
    },
});
export const SortDirectionType = PropTypes.oneOf([ASC, DESC]);
//# sourceMappingURL=sort_direction.js.map