mirror of
https://github.com/nuxt/nuxt.git
synced 2025-01-31 07:40:33 +00:00
15 lines
214 B
TypeScript
15 lines
214 B
TypeScript
interface ResT {
|
|
foo: string[]
|
|
bar: string[]
|
|
}
|
|
|
|
const { data } = await useFetchCustom<ResT>('/some/endpoint', {
|
|
default: () => ({
|
|
foo: [],
|
|
bar: [],
|
|
}),
|
|
})
|
|
if (data.value) {
|
|
const a = data.value
|
|
}
|