Skip to content

Commit

Permalink
docs: ts errors
Browse files Browse the repository at this point in the history
  • Loading branch information
benjamincanac committed Sep 16, 2024
1 parent 901b2f4 commit 5dca86e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions docs/app/app.vue
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
<script setup lang="ts">
import { withoutTrailingSlash } from 'ufo'
// import { debounce } from 'perfect-debounce'
import type { ContentSearchFile } from '@nuxt/ui-pro'
// import type { ContentSearchFile } from '@nuxt/ui-pro'
const route = useRoute()
// const colorMode = useColorMode()
const runtimeConfig = useRuntimeConfig()
const { integrity, api } = runtimeConfig.public.content
const { data: navigation } = await useAsyncData('navigation', () => fetchContentNavigation(), { default: () => [] })
const { data: files } = await useLazyFetch<ContentSearchFile[]>(`${api.baseURL}/search${integrity ? '.' + integrity : ''}`, { default: () => [] })
const { data: files } = await useLazyFetch<any[]>(`${api.baseURL}/search${integrity ? '.' + integrity : ''}`, { default: () => [] })
const searchTerm = ref('')
Expand Down
2 changes: 1 addition & 1 deletion docs/app/components/content/ComponentExample.vue
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ const optionsValues = ref(props.options?.reduce((acc, option) => {
acc[option.name] = option.default
}
return acc
}, {}))
}, {} as Record<string, any>) || {})
</script>

<template>
Expand Down
4 changes: 2 additions & 2 deletions docs/app/error.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<script setup lang="ts">
import type { NuxtError } from '#app'
import type { ContentSearchFile } from '@nuxt/ui-pro'
// import type { ContentSearchFile } from '@nuxt/ui-pro'
useSeoMeta({
title: 'Page not found',
Expand All @@ -18,7 +18,7 @@ const runtimeConfig = useRuntimeConfig()
const { integrity, api } = runtimeConfig.public.content
const { data: navigation } = await useAsyncData('navigation', () => fetchContentNavigation(), { default: () => [] })
const { data: files } = await useLazyFetch<ContentSearchFile[]>(`${api.baseURL}/search${integrity ? '.' + integrity : ''}`, { default: () => [] })
const { data: files } = await useLazyFetch<any[]>(`${api.baseURL}/search${integrity ? '.' + integrity : ''}`, { default: () => [] })
// Computed
Expand Down

0 comments on commit 5dca86e

Please sign in to comment.