Skip to content

Commit b478639

Browse files
chore: fix tsc errors (#667)
1 parent 291426c commit b478639

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
lines changed

Diff for: packages/applet/src/modules/custom-inspector/components/timeline/Index.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@ const state = useCustomInspectorState()
66
</script>
77

88
<template>
9-
<Timeline :layer-ids="state.timelineLayerIds!" :doc-link="state.homepage!" :plugin-id="state.pluginId" />
9+
<Timeline :layer-ids="state.timelineLayerIds!" :doc-link="state.homepage!" :plugin-id="state.pluginId!" />
1010
</template>

Diff for: packages/ui/src/components/DarkToggle.vue

+1-3
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,7 @@ const isDark = computed({
2727
set: v => mode.value = v ? 'dark' : 'light',
2828
})
2929
30-
// @ts-expect-error: Transition API
31-
const isAppearanceTransition = document.startViewTransition
30+
const isAppearanceTransition = !!document.startViewTransition
3231
&& !window.matchMedia('(prefers-reduced-motion: reduce)').matches
3332
/**
3433
* Credit to [@hooray](https://github.com/hooray)
@@ -45,7 +44,6 @@ function toggle(event?: MouseEvent) {
4544
Math.max(x, innerWidth - x),
4645
Math.max(y, innerHeight - y),
4746
)
48-
// @ts-expect-error: Transition API
4947
const transition = document.startViewTransition(async () => {
5048
isDark.value = !isDark.value
5149
await nextTick()

Diff for: packages/ui/src/components/Select.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<script setup lang="ts" generic="Value extends number | string, Label, M extends boolean">
22
import type { ButtonProps } from './Button.vue'
3-
import { VClosePopper as vClosePopper } from 'floating-vue'
3+
import { vClosePopper } from 'floating-vue'
44
import { computed, useSlots } from 'vue'
55
import VueButton from './Button.vue'
66
import VueDropdown from './Dropdown.vue'

0 commit comments

Comments
 (0)