chore: fix typecheck

This commit is contained in:
YunYouJun
2023-08-20 05:02:20 +08:00
parent 94a9ff5007
commit e861c5bd65
4 changed files with 6 additions and 9 deletions

View File

@@ -7,7 +7,7 @@ const props = defineProps<{
const recipes = ref<Cookbook['recipes']>(props.cookbook.recipes)
onMounted(async () => {
recipes.value = (await import('../../data/recipe.json')).default
recipes.value = ((await import('../../data/recipe.json')).default) as unknown as Cookbook['recipes']
})
</script>