Skip to content

Instantly share code, notes, and snippets.

@StephenDRoberts
Created August 21, 2020 13:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save StephenDRoberts/0f280a85347ffad130a53ff1885903ff to your computer and use it in GitHub Desktop.
Save StephenDRoberts/0f280a85347ffad130a53ff1885903ff to your computer and use it in GitHub Desktop.
Types for axios example
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