How to assign an interface to a useFetch object Vuejs 3
Interface
export interface ProdutoInterface {
codigo: number
nome: string
}
Componente
const { data: produto, error } = await useFetch(config.API_BASE_URL+`/produto`)
I can't get it to work. Would anyone know how to help me.
thank you very much for your attention