chore: improve type import

pull/153/head
Eduardo San Martin Morote 5 years ago
parent 743ece0745
commit c0218d19e7

@ -3,6 +3,7 @@
</template> </template>
<script setup lang="ts"> <script setup lang="ts">
import type { AlgoliaSearchOptions } from 'algoliasearch'
import { useRoute, useRouter } from 'vitepress' import { useRoute, useRouter } from 'vitepress'
import { defineProps, getCurrentInstance, onMounted, watch } from 'vue' import { defineProps, getCurrentInstance, onMounted, watch } from 'vue'
@ -26,7 +27,7 @@ function getRelativePath(absoluteUrl: string) {
const { options } = defineProps<{ const { options } = defineProps<{
// Using a regular import breaks at runtime // Using a regular import breaks at runtime
options: import('algoliasearch').AlgoliaSearchOptions options: AlgoliaSearchOptions
}>() }>()
const route = useRoute() const route = useRoute()

Loading…
Cancel
Save