Skip to content

Commit

Permalink
more types
Browse files Browse the repository at this point in the history
  • Loading branch information
eyeseast authored and allanlasser committed Apr 2, 2024
1 parent 6c7a43e commit 89b6c89
Show file tree
Hide file tree
Showing 13 changed files with 13 additions and 14 deletions.
2 changes: 1 addition & 1 deletion src/addons/AddOnPin.svelte
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<script lang="ts" context="module">
import { writable, type Writable } from "svelte/store";
import type { AddOnListItem } from "./types.ts";
import type { AddOnListItem } from "./types";
export const pinned: Writable<AddOnListItem[]> = writable([]);
</script>
Expand Down
2 changes: 1 addition & 1 deletion src/addons/browser/AddOnList.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import Loader from "../../common/Loader.svelte";
import ListItem from "./AddOnListItem.svelte";
import { AddOnListItem } from "../types";
import type { AddOnListItem } from "../types";
export let items: AddOnListItem[];
export let loading: boolean;
Expand Down
2 changes: 1 addition & 1 deletion src/addons/browser/AddOnListItem.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import AddOnPin from "../AddOnPin.svelte";
import AddOnPopularity from "../Popularity.svelte";
import type { AddOnListItem } from "../types.js";
import type { AddOnListItem } from "../types";
import PremiumBadge from "../../premium-credits/PremiumBadge.svelte";
export let addon: AddOnListItem;
Expand Down
2 changes: 1 addition & 1 deletion src/addons/browser/Browser.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<script lang="ts">
import { _ } from "svelte-i18n";
import AddOnList from "./AddOnList.svelte";
import type { AddOnListItem } from "../types.ts";
import type { AddOnListItem } from "../types";
import Filters from "./Filters.svelte";
import Categories from "./Categories.svelte";
import { buildParams, buildUrl, filter } from "./browser";
Expand Down
2 changes: 1 addition & 1 deletion src/addons/dispatch/Dispatch.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import { onMount, tick } from "svelte";
import { _ } from "svelte-i18n";
import type { AddOnListItem, Event } from "../types.ts";
import type { AddOnListItem, Event } from "../types";
import Button from "../../common/Button.svelte";
import Drawer from "../../common/Drawer.svelte";
Expand Down
2 changes: 1 addition & 1 deletion src/addons/dispatch/Header.svelte
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<script lang="ts">
import { _ } from "svelte-i18n";
import type { AddOnListItem } from "../types.ts";
import type { AddOnListItem } from "../types";
import BackArrow from "../../common/icons/BackArrow.svelte";
import Button from "../../common/Button.svelte";
import GitHubIcon from "svelte-octicons/lib/MarkGithub16.svelte";
Expand Down
2 changes: 1 addition & 1 deletion src/addons/dispatch/ScheduledInset.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import { _ } from "svelte-i18n";
import { onMount } from "svelte";
import type { AddOnListItem, Event } from "../types.ts";
import type { AddOnListItem, Event } from "../types";
import ScheduledEvent from "../runs/ScheduledEvent.svelte";
import { baseApiUrl } from "../../api/base.js";
Expand Down
1 change: 0 additions & 1 deletion src/addons/dispatch/stories/Dispatch.stories.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
scheduled as klaxon,
} from "../../../test/fixtures/addons";
import { scheduled, send, pin } from "../../../test/handlers/addons";
import { AddOnListItem, Event } from "../../types";
const { addon, ...event } = eventFixture;
const addons = addonsList.results;
Expand Down
2 changes: 1 addition & 1 deletion src/pages/app/sidebar/addons/AddonListItem.svelte
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<script lang="ts">
import type { AddOnListItem } from "../../../../addons/types.ts";
import type { AddOnListItem } from "../../../../addons/types";
import Pin from "../../../../common/icons/Pin.svelte";
import ListItem from "../ListItem.svelte";
Expand Down
2 changes: 1 addition & 1 deletion src/pages/app/sidebar/projects/ProjectList.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import { _ } from "svelte-i18n";
import equal from "fast-deep-equal";
import type { Project, User } from "../../../../api/types";
import type { User } from "../../../../api/types";
import { getProjects } from "../../../../api/project";
import { projectUrl } from "../../../../search/search.js";
import { Project as ProjectStructure } from "../../../../structure/project.js";
Expand Down
4 changes: 2 additions & 2 deletions src/test/fixtures/addons.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Page } from "../../api/types";
import { AddOnListItem, Event, Run } from "../../addons/types";
import type { Page } from "../../api/types";
import type { AddOnListItem, Event, Run } from "../../addons/types";

export const addon: AddOnListItem = {
id: 8,
Expand Down
2 changes: 1 addition & 1 deletion src/test/fixtures/documents.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Document, Page } from "../../api/types";
import type { Document, Page } from "../../api/types";

/*
Expand Down
2 changes: 1 addition & 1 deletion src/test/fixtures/projects.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Page, Project } from "../../api/types";
import type { Page, Project } from "../../api/types";

export let project: Project = {
id: 29,
Expand Down

0 comments on commit 89b6c89

Please sign in to comment.