diff --git a/src/database/memory-detector.ts b/src/database/memory-detector.ts index 64ef51508..5579bef5e 100644 --- a/src/database/memory-detector.ts +++ b/src/database/memory-detector.ts @@ -10,7 +10,7 @@ import StoragePromise from "./common/storage-promise" /** * User memory of this extension */ -type MemoryInfo = { +export type MemoryInfo = { /** * Used bytes */ diff --git a/src/pages/app/components/About/DescLink.tsx b/src/pages/app/components/About/DescLink.tsx index 6651884d6..26590c20e 100644 --- a/src/pages/app/components/About/DescLink.tsx +++ b/src/pages/app/components/About/DescLink.tsx @@ -1,24 +1,18 @@ import { ElLink } from "element-plus" -import { defineComponent, h, useSlots, type PropType } from "vue" +import { defineComponent, h, useSlots } from "vue" import "./desc-link.sass" -export type Icon = "github" | "element-plus" | "echarts" | "vue" +type Icon = "github" | "element-plus" | "echarts" | "vue" -const _default = defineComponent({ - props: { - href: String, - icon: String as PropType - }, - setup(props) { - const { icon, href } = props - const { default: default_ } = useSlots() - return () => ( - - {icon ?
: null} - {!!default_ && h(default_)} - - ) - } -}) +const _default = defineComponent<{ href?: string, icon?: Icon }>(props => { + const { icon, href } = props + const { default: default_ } = useSlots() + return () => ( + + {icon ?
: null} + {!!default_ && h(default_)} + + ) +}, { props: ['href', 'icon'] }) export default _default \ No newline at end of file diff --git a/src/pages/app/components/About/InstallationLink.tsx b/src/pages/app/components/About/InstallationLink.tsx index 71c82fe40..e4cb57841 100644 --- a/src/pages/app/components/About/InstallationLink.tsx +++ b/src/pages/app/components/About/InstallationLink.tsx @@ -1,23 +1,16 @@ -import { type PropType, defineComponent } from "vue" +import { defineComponent } from "vue" import "./installation-link.sass" type _Source = 'chrome' | 'firefox' | 'edge' | 'kiwi' -const _default = defineComponent({ - props: { - source: String as PropType<_Source>, - name: String, - href: String, - }, - setup({ source, name, href }) { - return () => -