Skip to content

Commit 1569db6

Browse files
committed
Style(typescript): remove some usage of any type
1 parent 8d6a387 commit 1569db6

File tree

6 files changed

+12
-6
lines changed

6 files changed

+12
-6
lines changed

src/views/dashboard/admin/components/TransactionTable.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@
3737
<script lang="ts">
3838
import { Component, Vue } from 'vue-property-decorator'
3939
import { getTransactions } from '@/api/transactions'
40+
import { ITransactionData } from '@/api/types'
4041
4142
@Component({
4243
name: 'TransactionTable',
@@ -56,7 +57,7 @@ import { getTransactions } from '@/api/transactions'
5657
}
5758
})
5859
export default class extends Vue {
59-
private list: any[] = []
60+
private list: ITransactionData[] = []
6061
6162
created() {
6263
this.fetchData()

src/views/example/list.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,7 @@
110110
<script lang="ts">
111111
import { Component, Vue } from 'vue-property-decorator'
112112
import { getArticles } from '@/api/articles'
113+
import { IArticleData } from '@/api/types'
113114
import Pagination from '@/components/Pagination/index.vue'
114115
115116
@Component({
@@ -120,7 +121,7 @@ import Pagination from '@/components/Pagination/index.vue'
120121
})
121122
export default class extends Vue {
122123
private total = 0
123-
private list: any[] = []
124+
private list: IArticleData[] = []
124125
private listLoading = true
125126
private listQuery = {
126127
page: 1,

src/views/excel/export-excel.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@
7979
<script lang="ts">
8080
import { Component, Vue } from 'vue-property-decorator'
8181
import { getArticles } from '@/api/articles'
82+
import { IArticleData } from '@/api/types'
8283
import { formatJson } from '@/utils'
8384
import { exportJson2Excel } from '@/utils/excel'
8485
import FilenameOption from './components/FilenameOption.vue'
@@ -94,7 +95,7 @@ import BookTypeOption from './components/BookTypeOption.vue'
9495
}
9596
})
9697
export default class extends Vue {
97-
private list: any[] = []
98+
private list: IArticleData[] = []
9899
private listLoading = true
99100
private downloadLoading = false
100101
private filename = ''

src/views/excel/merge-header.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,14 +73,15 @@
7373
<script lang="ts">
7474
import { Component, Vue } from 'vue-property-decorator'
7575
import { getArticles } from '@/api/articles'
76+
import { IArticleData } from '@/api/types'
7677
import { formatJson } from '@/utils'
7778
import { exportJson2Excel } from '@/utils/excel'
7879
7980
@Component({
8081
name: 'MergeHeader'
8182
})
8283
export default class extends Vue {
83-
private list: any[] = []
84+
private list: IArticleData[] = []
8485
private listLoading = true
8586
private downloadLoading = false
8687

src/views/excel/select-excel.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@
8585
<script lang="ts">
8686
import { Component, Vue } from 'vue-property-decorator'
8787
import { getArticles } from '@/api/articles'
88+
import { IArticleData } from '@/api/types'
8889
import { formatJson } from '@/utils'
8990
import { exportJson2Excel } from '@/utils/excel'
9091
import { Table } from 'element-ui'
@@ -93,7 +94,7 @@ import { Table } from 'element-ui'
9394
name: 'SelectExcel'
9495
})
9596
export default class extends Vue {
96-
private list: any[] = []
97+
private list: IArticleData[] = []
9798
private listLoading = true
9899
private multipleSelection = []
99100
private downloadLoading = false

src/views/zip/index.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,14 +72,15 @@
7272
<script lang="ts">
7373
import { Component, Vue } from 'vue-property-decorator'
7474
import { getArticles } from '@/api/articles'
75+
import { IArticleData } from '@/api/types'
7576
import { formatJson } from '@/utils'
7677
import { exportTxt2Zip } from '@/utils/zip'
7778
7879
@Component({
7980
name: 'ExportZip'
8081
})
8182
export default class extends Vue {
82-
private list: any[] = []
83+
private list: IArticleData[] = []
8384
private listLoading = true
8485
private downloadLoading = false
8586
private filename = ''

0 commit comments

Comments
 (0)