Skip to content

Instantly share code, notes, and snippets.

@j-catania
Created October 17, 2022 10:11
Show Gist options
  • Save j-catania/e409011a246332e64aea5d64ae993d16 to your computer and use it in GitHub Desktop.
Save j-catania/e409011a246332e64aea5d64ae993d16 to your computer and use it in GitHub Desktop.
export interface Todo {
userId: number;
id: number;
title: string;
completed: boolean;
}
export interface User {
id: number;
name: string;
username: string;
email: string;
address: Address;
phone: string;
website: string;
company: Company;
todos: Todo[];
}
export interface Company {
name: string;
catchPhrase: string;
bs: string;
}
export interface Geo {
lat: string;
lng: string;
}
export interface Address {
street: string;
suite: string;
city: string;
zipcode: string;
geo: Geo;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment