fix circular import
This commit is contained in:
@@ -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.
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user