mirror of
https://github.com/tenrok/axios.git
synced 2026-06-20 20:00:40 +03:00
doc(readme): uses latest syntax for Typescript import
This commit is contained in:
@@ -396,7 +396,7 @@ If your environment doesn't support ES6 Promises, you can [polyfill](https://git
|
|||||||
axios includes a [TypeScript](http://typescriptlang.org) definition.
|
axios includes a [TypeScript](http://typescriptlang.org) definition.
|
||||||
```typescript
|
```typescript
|
||||||
/// <reference path="axios.d.ts" />
|
/// <reference path="axios.d.ts" />
|
||||||
import axios = require('axios');
|
import * as axios from 'axios';
|
||||||
axios.get('/user?ID=12345');
|
axios.get('/user?ID=12345');
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user