Skip to content

Commit

Permalink
Updating axios in types to be lower case
Browse files Browse the repository at this point in the history
All examples use the lower case variable `axios`. However, when auto importing
in a TypeScript based editor, the import was named `Axios`, because this is how
it was defined in the typings.
  • Loading branch information
remcohaszing committed Aug 30, 2020
1 parent 0d87655 commit b862130
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.d.ts
Expand Up @@ -155,6 +155,6 @@ export interface AxiosStatic extends AxiosInstance {
spread<T, R>(callback: (...args: T[]) => R): (array: T[]) => R;
}

declare const Axios: AxiosStatic;
declare const axios: AxiosStatic;

export default Axios;
export default axios;

0 comments on commit b862130

Please sign in to comment.