Nuxt module starter: composables aren't recognized by TS

Using this module starter: https://github.com/nuxt/starter/tree/module
<template>
<a-extract-style>
<a-config-provider :theme="theme">
<slot />
</a-config-provider>
</a-extract-style>
</template>

<script setup lang="ts">
const config = useRuntimeConfig()
const theme = computed(() => {
return {
token: {
...config.public.theme,
},
}
})
</script>
<template>
<a-extract-style>
<a-config-provider :theme="theme">
<slot />
</a-config-provider>
</a-extract-style>
</template>

<script setup lang="ts">
const config = useRuntimeConfig()
const theme = computed(() => {
return {
token: {
...config.public.theme,
},
}
})
</script>
Both useRuntimeConfig & computed not recognized by TS, why?
GitHub
GitHub - nuxt/starter at module
Create a new Nuxt project, module, layer or start from a theme with our collection of starters. - GitHub - nuxt/starter at module
0 Replies
No replies yetBe the first to reply to this messageJoin
Want results from more Discord servers?
Add your server