Skip to content

Commit

Permalink
fix: more type issues
Browse files Browse the repository at this point in the history
  • Loading branch information
AlejandroAkbal committed Nov 9, 2023
1 parent 64ee4f3 commit 4d51484
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 6 deletions.
8 changes: 6 additions & 2 deletions assets/js/BackupHelper.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
import { db as postsDb, ISavedPost } from '~/store/SavedPosts'
import { ITagCollection } from 'assets/js/tagCollection.dto'
import { db as postsDb, type ISavedPost } from '~/store/SavedPosts'
import type { ITagCollection } from '~/assets/js/tagCollection.dto'
import type { VuexUser } from '~/assets/js/oldLocalStorage.dto'
import { union } from 'lodash-es'
import type { Domain } from '~/assets/js/domain'
import { booruTypeList } from '~/assets/lib/rule-34-shared-resources/src/util/BooruUtils'

export interface IBackupState {
version: number
Expand Down
2 changes: 1 addition & 1 deletion assets/js/tagCollection.dto.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export class TagCollectionDTO implements ITagCollection {
tags: string[] = []
}

export default class TagCollection extends TagCollectionDTO {
export class TagCollection extends TagCollectionDTO {
constructor(dto: TagCollectionDTO) {
super()
Object.assign(this, dto)
Expand Down
2 changes: 1 addition & 1 deletion pages/premium/backup.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import { ArrowDownTrayIcon, ArrowUturnLeftIcon } from '@heroicons/vue/24/solid'
import PageHeader from '~/components/layout/PageHeader.vue'
import { toast } from 'vue-sonner'
import { createBackupState, IBackupState, restoreBackupState } from '~/assets/js/BackupHelper'
import { createBackupState, type IBackupState, restoreBackupState } from '~/assets/js/BackupHelper'
const fileInputElement = ref<HTMLInputElement | null>(null)
Expand Down
2 changes: 1 addition & 1 deletion pages/premium/saved-posts.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<script lang='ts' setup>
import { db, ISavedPost } from '~/store/SavedPosts'
import { db, type ISavedPost } from '~/store/SavedPosts'
import { QuestionMarkCircleIcon } from '@heroicons/vue/24/solid'
import { useObservable } from '@vueuse/rxjs'
import { liveQuery } from 'dexie'
Expand Down
2 changes: 1 addition & 1 deletion pages/premium/tag-collections.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { moveArrayElement, useSortable } from '@vueuse/integrations/useSortable'
import type { ComputedRef, Ref } from 'vue'
import { toast } from 'vue-sonner'
import { useTagCollections } from '~/composables/useTagCollections'
import TagCollection, { ITagCollection } from 'assets/js/tagCollection.dto'
import { type ITagCollection, TagCollection } from '~/assets/js/tagCollection.dto'
const { tagCollections, resetTagCollections } = useTagCollections()
Expand Down

0 comments on commit 4d51484

Please sign in to comment.