fix import type

This commit is contained in:
Dominik Pschenitschni 2022-04-11 22:08:28 +02:00 committed by Gitea
parent c6aac15d24
commit d064f0acc0
8 changed files with 12 additions and 10 deletions

View file

@ -1,4 +1,4 @@
import {RouteLocation} from 'vue-router'
import type {RouteLocation} from 'vue-router'
import {isAppleDevice} from '@/helpers/isAppleDevice'

View file

@ -1,5 +1,6 @@
import {computed, watch, readonly} from 'vue'
import {useStorage, createSharedComposable, BasicColorSchema, usePreferredColorScheme, tryOnMounted} from '@vueuse/core'
import {useStorage, createSharedComposable, usePreferredColorScheme, tryOnMounted} from '@vueuse/core'
import type {BasicColorSchema} from '@vueuse/core'
const STORAGE_KEY = 'color-scheme'

View file

@ -1,6 +1,6 @@
import {ref} from 'vue'
import {useOnline as useNetworkOnline, ConfigurableWindow} from '@vueuse/core'
import {useOnline as useNetworkOnline} from '@vueuse/core'
import type {ConfigurableWindow} from '@vueuse/core'
export function useOnline(options?: ConfigurableWindow) {
const fakeOnlineState = !!import.meta.env.VITE_IS_ONLINE

View file

@ -1,7 +1,7 @@
import { computed, watchEffect } from 'vue'
import { setTitle } from '@/helpers/setTitle'
import type { ComputedGetter } from 'vue'
import { ComputedGetter } from 'vue'
import { setTitle } from '@/helpers/setTitle'
export function useTitle(titleGetter: ComputedGetter<string>) {
const titleRef = computed(titleGetter)

View file

@ -1,4 +1,4 @@
import {Directive} from 'vue'
import type {Directive} from 'vue'
declare global {
interface Window {

View file

@ -1,4 +1,4 @@
import {Directive} from 'vue'
import type {Directive} from 'vue'
import {install, uninstall} from '@github/hotkey'
import {isAppleDevice} from '@/helpers/isAppleDevice'

View file

@ -1,6 +1,6 @@
import {i18n} from '@/i18n'
import ListModal from '@/modals/list'
import type ListModal from '@/models/list'
export function getListTitle(l: ListModal) {
if (l.id === -1) {

View file

@ -1,4 +1,5 @@
import { createRouter, createWebHistory, RouteLocation } from 'vue-router'
import { createRouter, createWebHistory } from 'vue-router'
import type { RouteLocation } from 'vue-router'
import {saveLastVisited} from '@/helpers/saveLastVisited'
import {store} from '@/store'