init
This commit is contained in:
7
shared/types/posts.ts
Normal file
7
shared/types/posts.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
export interface Post {
|
||||
userId: number
|
||||
id: number
|
||||
title: string
|
||||
body: string
|
||||
}
|
||||
export type Posts = Post[]
|
||||
31
shared/types/users.ts
Normal file
31
shared/types/users.ts
Normal file
@@ -0,0 +1,31 @@
|
||||
export interface UserCompany {
|
||||
name: string
|
||||
catchPhrase: string
|
||||
bs: string
|
||||
}
|
||||
|
||||
export interface UserAddressGeo {
|
||||
lat: string
|
||||
lng: string
|
||||
}
|
||||
|
||||
export interface UserAddress {
|
||||
street: string
|
||||
suite: string
|
||||
city: string
|
||||
zipcode: string
|
||||
geo: UserAddressGeo
|
||||
}
|
||||
|
||||
export interface User {
|
||||
id: number
|
||||
name: string
|
||||
username: string
|
||||
email: string
|
||||
address: UserAddress
|
||||
phone: string
|
||||
website: string
|
||||
company: UserCompany
|
||||
}
|
||||
|
||||
export type Users = User[]
|
||||
Reference in New Issue
Block a user