diff --git a/src/pages/app/accounts/AccountNavigation.svelte b/src/pages/app/accounts/AccountNavigation.svelte index 0a802a23f..f6418a8bb 100644 --- a/src/pages/app/accounts/AccountNavigation.svelte +++ b/src/pages/app/accounts/AccountNavigation.svelte @@ -5,7 +5,7 @@ import HelpMenu from "./HelpMenu.svelte"; import UserMenu from "./UserMenu.svelte"; import OrgMenu from "./OrgMenu.svelte"; - import { User, Org, isOrg } from "../../../api/types/orgAndUser"; + import { type User, type Org, isOrg } from "../../../api/types/orgAndUser"; let user: User | null = null; let org: Org | null = null; diff --git a/src/pages/app/accounts/OrgMenu.svelte b/src/pages/app/accounts/OrgMenu.svelte index 786b38993..580bc02c1 100644 --- a/src/pages/app/accounts/OrgMenu.svelte +++ b/src/pages/app/accounts/OrgMenu.svelte @@ -2,11 +2,11 @@ import { _, locale } from "svelte-i18n"; import Organization16 from "svelte-octicons/lib/Organization16.svelte"; + import type { User, Org } from "../../../api/types/orgAndUser"; import Dropdown from "../../../common/Dropdown2.svelte"; import Menu from "../../../common/Menu.svelte"; import MenuTitle from "../../../common/MenuTitle.svelte"; import Loader from "../../../common/Loader.svelte"; - import { User, Org } from "../../../api/types/orgAndUser"; import OrgMemberList from "./OrgMemberList.svelte"; import { changeActive, diff --git a/src/pages/app/accounts/OrgPicker.svelte b/src/pages/app/accounts/OrgPicker.svelte index 9f0116543..3ad09a732 100644 --- a/src/pages/app/accounts/OrgPicker.svelte +++ b/src/pages/app/accounts/OrgPicker.svelte @@ -7,7 +7,7 @@ import MenuItem from "../../../common/MenuItem.svelte"; import Loader from "../../../common/Loader.svelte"; - import { Org } from "../../../api/types/orgAndUser"; + import type { Org } from "../../../api/types/orgAndUser"; export let activeOrg: Org; export let loading = false; diff --git a/src/pages/app/accounts/PremiumMenu.svelte b/src/pages/app/accounts/PremiumMenu.svelte index 13b52a684..75beb7dba 100644 --- a/src/pages/app/accounts/PremiumMenu.svelte +++ b/src/pages/app/accounts/PremiumMenu.svelte @@ -14,7 +14,7 @@ import { Plug16, Organization16 } from "svelte-octicons"; import { SQUARELET_URL } from "../../../api/auth"; - import { Org } from "../../../api/types/orgAndUser"; + import type { Org } from "../../../api/types/orgAndUser"; import MenuInsert from "../../../common/MenuInsert.svelte"; import { isPremiumOrg, diff --git a/src/pages/app/accounts/UserMenu.svelte b/src/pages/app/accounts/UserMenu.svelte index 460ad5e71..19a46e033 100644 --- a/src/pages/app/accounts/UserMenu.svelte +++ b/src/pages/app/accounts/UserMenu.svelte @@ -15,7 +15,7 @@ } from "../../../api/auth.js"; import { showMailkeySelected } from "../../../manager/manager.js"; import { Maybe } from "../../../api/types/common"; - import { User } from "../../../api/types/orgAndUser"; + import type { User } from "../../../api/types/orgAndUser"; export let user: Maybe; diff --git a/src/pages/app/sidebar/Sidebar.svelte b/src/pages/app/sidebar/Sidebar.svelte index f70ac5809..e3a985f50 100644 --- a/src/pages/app/sidebar/Sidebar.svelte +++ b/src/pages/app/sidebar/Sidebar.svelte @@ -13,7 +13,7 @@ import { browseProjects, editProject } from "../../../manager/layout.js"; import { getMe } from "../../../api/orgAndUser"; - import { User } from "../../../api/types/orgAndUser"; + import type { User } from "../../../api/types/orgAndUser"; export let expanded; diff --git a/src/projects/Browser.svelte b/src/projects/Browser.svelte index 8fb6d944c..d98666b24 100644 --- a/src/projects/Browser.svelte +++ b/src/projects/Browser.svelte @@ -9,11 +9,10 @@ import Drawer from "../common/Drawer.svelte"; import Search, { query } from "../common/SearchInput.svelte"; import Flex from "../common/Flex.svelte"; - import Paginator from "../common/Paginator.svelte"; import ProjectList from "./ProjectList.svelte"; import { newProject } from "../manager/layout"; import Button from "../common/Button.svelte"; - import { getProjects, getPublicProjects } from "../api/project"; + import { getProjects } from "../api/project"; import type { User } from "../api/types"; import { getMe } from "../api/orgAndUser"; import Filters, { type FilterKey, filter } from "./Filters.svelte"; diff --git a/src/test/fixtures/accounts.ts b/src/test/fixtures/accounts.ts index 2555a0b37..7be30653e 100644 --- a/src/test/fixtures/accounts.ts +++ b/src/test/fixtures/accounts.ts @@ -1,5 +1,5 @@ -import { Org, Page, User } from "../../api/types"; -import { GroupOrg, IndividualOrg } from "../../api/types/orgAndUser"; +import type { Org, Page, User } from "../../api/types"; +import type { GroupOrg, IndividualOrg } from "../../api/types/orgAndUser"; export const me: User = { id: 100012, diff --git a/src/test/handlers/accounts.ts b/src/test/handlers/accounts.ts index 242a86720..c9762fc76 100644 --- a/src/test/handlers/accounts.ts +++ b/src/test/handlers/accounts.ts @@ -7,7 +7,7 @@ import { proOrg, usersList, } from "../fixtures/accounts"; -import { Org } from "../../api/types/orgAndUser"; +import type { Org } from "../../api/types/orgAndUser"; import { createApiUrl, dataHandler,