-
-
Save StephenDRoberts/0f280a85347ffad130a53ff1885903ff to your computer and use it in GitHub Desktop.
Types for axios example
This file contains 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
export interface DailyPrices { | |
total: number, | |
offset: number, | |
results: DailyPrice[], | |
responseStatus: string | null | |
} | |
export interface DailyPrice { | |
date: string, | |
open: number, | |
high: number, | |
low: number, | |
last: number, | |
volume: number | |
} | |
export interface APIResponse { | |
results: DailyPrice[] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment