fix: type errors

This commit is contained in:
三咲智子 2022-11-27 16:54:00 +08:00
parent c4af4a610e
commit a101b79486
No known key found for this signature in database
GPG key ID: 69992F2250DFD93E
4 changed files with 11 additions and 5 deletions

View file

@ -10,6 +10,14 @@ const { paginator, keyProp = 'id', virtualScroller = false } = defineProps<{
virtualScroller: boolean virtualScroller: boolean
}>() }>()
defineSlots<{
default: {
item: any
active?: boolean
}
loading: {}
}>()
const { items, state, endAnchor, error } = usePaginator(paginator) const { items, state, endAnchor, error } = usePaginator(paginator)
</script> </script>

View file

@ -1,7 +1,5 @@
<script setup lang="ts"> <script setup lang="ts">
// eslint-disable-next-line @typescript-eslint/prefer-ts-expect-error const buildTime = import.meta.env.__BUILD_TIME__ as string
// @ts-ignore build time
const buildTime = __BUILD_TIME__
const buildTimeAgo = useTimeAgo(buildTime) const buildTimeAgo = useTimeAgo(buildTime)
</script> </script>

View file

@ -27,7 +27,7 @@ export default defineNuxtConfig({
}, },
vite: { vite: {
define: { define: {
'__BUILD_TIME__': JSON.stringify(new Date().toISOString()), 'import.meta.env.__BUILD_TIME__': JSON.stringify(new Date().toISOString()),
'process.env.VSCODE_TEXTMATE_DEBUG': 'false', 'process.env.VSCODE_TEXTMATE_DEBUG': 'false',
}, },
build: { build: {

View file

@ -7,7 +7,7 @@ definePageMeta({
return { return {
path: getStatusPath(status), path: getStatusPath(status),
state: { state: {
status, status: status as any,
}, },
} }
}, },