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 Mar 4, 2020
1 parent 5214445 commit b6f5e62
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.d.ts
Expand Up @@ -152,6 +152,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 b6f5e62

Please sign in to comment.