web 3d图形渲染器
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

28 lines
867 B

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var IssueOrigin = {
TYPESCRIPT: 'typescript',
ESLINT: 'eslint',
INTERNAL: 'internal'
};
exports.IssueOrigin = IssueOrigin;
function isIssueOrigin(value) {
return [
IssueOrigin.TYPESCRIPT,
IssueOrigin.ESLINT,
IssueOrigin.INTERNAL
].includes(value);
}
exports.isIssueOrigin = isIssueOrigin;
function compareIssueOrigins(originA, originB) {
var _a = [originA, originB].map(function (origin) {
return [
IssueOrigin.ESLINT /* 0 */,
IssueOrigin.TYPESCRIPT /* 1 */,
IssueOrigin.INTERNAL /* 2 */
].indexOf(origin);
}), priorityA = _a[0], priorityB = _a[1];
return Math.sign(priorityB - priorityA);
}
exports.compareIssueOrigins = compareIssueOrigins;
//# sourceMappingURL=IssueOrigin.js.map