Skip to content

Commit

Permalink
chore: Refactor Milestone type
Browse files Browse the repository at this point in the history
  • Loading branch information
kenowi-dev committed Sep 3, 2023
1 parent 7e6b644 commit a0d36fe
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 39 deletions.
2 changes: 1 addition & 1 deletion src/routes/milestones/+page.svelte
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<script lang="ts">
import type {PageData} from "./$types";
import type {Milestone} from "./+page";
import type {Milestone} from "./milestone";
import Icon from "$lib/components/Icon.svelte";
export let data: PageData;
Expand Down
39 changes: 1 addition & 38 deletions src/routes/milestones/+page.ts
Original file line number Diff line number Diff line change
@@ -1,42 +1,5 @@
import type { PageLoad } from './$types';

export type Milestone = {
url: string,
html_url: string,
labels_url: string,
id: number,
node_id: string,
number: number,
title: string,
description: string,
creator: {
login: string,
id: number,
node_id: string,
avatar_url: string,
gravatar_id: string,
url: string,
html_url: string,
followers_url: string,
following_url: string,
gists_url: string,
starred_url: string,
subscriptions_url: string,
organizations_url: string,
repos_url: string,
events_url: string,
received_events_url: string,
type: string,
site_admin: boolean
},
open_issues: number,
closed_issues: number,
state: string,
created_at: string,
updated_at: string,
due_on: string,
closed_at: string
}
import type {Milestone} from "./milestone.ts";


export const load: PageLoad = async ({fetch}) => ({
Expand Down
37 changes: 37 additions & 0 deletions src/routes/milestones/milestone.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
export type Milestone = {
url: string,
html_url: string,
labels_url: string,
id: number,
node_id: string,
number: number,
title: string,
description: string,
creator: {
login: string,
id: number,
node_id: string,
avatar_url: string,
gravatar_id: string,
url: string,
html_url: string,
followers_url: string,
following_url: string,
gists_url: string,
starred_url: string,
subscriptions_url: string,
organizations_url: string,
repos_url: string,
events_url: string,
received_events_url: string,
type: string,
site_admin: boolean
},
open_issues: number,
closed_issues: number,
state: string,
created_at: string,
updated_at: string,
due_on: string,
closed_at: string
}

0 comments on commit a0d36fe

Please sign in to comment.