fix circular import

This commit is contained in:
martin-mfg
2025-11-04 09:49:14 +01:00
parent 4a34feb991
commit 270f42f718
3 changed files with 4 additions and 5 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
// @ts-check
import { OWNER_AFFILIATIONS } from "./render.js";
import { OWNER_AFFILIATIONS } from "./ops.js";
/**
* @type {string} A general message to ask user to try again later.
+3 -1
View File
@@ -1,7 +1,8 @@
// @ts-check
import toEmoji from "emoji-name-map";
import { SECONDARY_ERROR_MESSAGES, TRY_AGAIN_LATER } from "./error.js";
const OWNER_AFFILIATIONS = ["OWNER", "COLLABORATOR", "ORGANIZATION_MEMBER"];
/**
* Returns boolean if value is either "true" or "false" else the value as it is.
@@ -158,6 +159,7 @@ const buildSearchFilter = (repos = [], owners = []) => {
};
export {
OWNER_AFFILIATIONS,
parseBoolean,
parseArray,
clampValue,
-3
View File
@@ -5,8 +5,6 @@ import { getCardColors } from "./color.js";
import { encodeHTML } from "./html.js";
import { clampValue } from "./ops.js";
const OWNER_AFFILIATIONS = ["OWNER", "COLLABORATOR", "ORGANIZATION_MEMBER"];
/**
* Auto layout utility, allows us to layout things vertically or horizontally with
* proper gaping.
@@ -237,6 +235,5 @@ export {
createProgressNode,
iconWithLabel,
flexLayout,
OWNER_AFFILIATIONS,
measureText,
};