File tree Expand file tree Collapse file tree 2 files changed +11
-2
lines changed Expand file tree Collapse file tree 2 files changed +11
-2
lines changed Original file line number Diff line number Diff line change 22import {SvgIcon } from ' ../svg.ts' ;
33import {GET } from ' ../modules/fetch.ts' ;
44import {computed , onMounted , ref } from ' vue' ;
5+ import type {Issue } from ' ../types' ;
56
67const {appSubUrl, i18n} = window .config ;
78
@@ -20,8 +21,6 @@ const body = computed(() => {
2021 return body ;
2122});
2223
23- type Issue = {id: number ; title: string ; state: ' open' | ' closed' ; pull_request? : {draft: boolean ; merged: boolean }};
24-
2524function getIssueIcon(issue : Issue ) {
2625 if (issue .pull_request ) {
2726 if (issue .state === ' open' ) {
Original file line number Diff line number Diff line change @@ -36,3 +36,13 @@ export type IssueData = {
3636 type : string ,
3737 index : string ,
3838}
39+
40+ export type Issue = {
41+ id : number ;
42+ title : string ;
43+ state : 'open' | 'closed' ;
44+ pull_request ?: {
45+ draft : boolean ;
46+ merged : boolean ;
47+ } ;
48+ } ;
You can’t perform that action at this time.
0 commit comments