Skip to content

Commit

Permalink
chore: add typings based on generics feature
Browse files Browse the repository at this point in the history
  • Loading branch information
tewshi committed Sep 25, 2023
1 parent c742b35 commit d35c649
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion components/account/home/PaymentsTable.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,12 @@
import { storeToRefs } from 'pinia';
import { get } from '@vueuse/core';
import { type TableColumn } from '@rotki/ui-library/dist/components/tables/DataTable.vue';
import { type Payment } from 'types';
import { useMainStore } from '~/store';
const { t } = useI18n();
const headers: TableColumn[] = [
const headers: TableColumn<Payment>[] = [
{
label: t('common.plan'),
key: 'plan',
Expand Down
2 changes: 1 addition & 1 deletion components/account/home/SubscriptionTable.vue
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { type Subscription } from '~/types';
const { t } = useI18n();
const headers: TableColumn[] = [
const headers: TableColumn<Subscription>[] = [
{
label: t('common.plan'),
key: 'planName',
Expand Down

0 comments on commit d35c649

Please sign in to comment.