Skip to content
Switch branches/tags
Go to file
Cannot retrieve contributors at this time
import axios from 'axios'
const url = ''
interface Todo {
id: number
title: string
completed: boolean
axios.get(url).then(response => {
const todo: Todo =
const id =
const title = todo.title
const completed = todo.completed
logTodo(id, title, completed)
const logTodo = (id: number, title: string, completed: boolean) => {
The Todo with the ID: ${id}
Has a title of: ${title}
Is it finished? ${completed}