Skip to content

Commit

Permalink
Add type to type imports
Browse files Browse the repository at this point in the history
  • Loading branch information
eyeseast committed Apr 1, 2024
1 parent 862933e commit 014e7aa
Show file tree
Hide file tree
Showing 9 changed files with 10 additions and 11 deletions.
2 changes: 1 addition & 1 deletion src/pages/app/accounts/AccountNavigation.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion src/pages/app/accounts/OrgMenu.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion src/pages/app/accounts/OrgPicker.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion src/pages/app/accounts/PremiumMenu.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion src/pages/app/accounts/UserMenu.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -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<User>;
Expand Down
2 changes: 1 addition & 1 deletion src/pages/app/sidebar/Sidebar.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
3 changes: 1 addition & 2 deletions src/projects/Browser.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down
4 changes: 2 additions & 2 deletions src/test/fixtures/accounts.ts
Original file line number Diff line number Diff line change
@@ -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,
Expand Down
2 changes: 1 addition & 1 deletion src/test/handlers/accounts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 014e7aa

Please sign in to comment.