Created
June 11, 2020 02:32
-
-
Save gnomex/b814c69db6e84fa55e8b990ffce5d8b9 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
interface APIItemResponse { | |
data: { | |
id: number, | |
type: string, | |
attributes: Item | |
}[], | |
meta: { | |
total: number, | |
total_pages: number, | |
page: number, | |
per_page: number | |
} | |
links: { | |
prev: string, | |
self: string, | |
next: string | |
} | |
} | |
// api.get<APIItemResponse>('items').then(response => { |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment