style: prettified code

This commit is contained in:
arthurfiorette 2022-01-04 15:38:32 -03:00
parent e34bfdd92b
commit 3c38985113
No known key found for this signature in database
GPG Key ID: 9D190CD53C53C555
2 changed files with 6 additions and 6 deletions

View File

@ -317,10 +317,11 @@ can use them too.
### Url Imports
For those who wants to import this package as a http url, the `index.es2020.min.js` is for you.
For those who wants to import this package as a http url, the `index.es2020.min.js` is for
you.
```ts
import { setupCache } from 'https://cdn.jsdelivr.net/npm/axios-cache-interceptor@latest/dist/index.es2020.min.js'
import { setupCache } from 'https://cdn.jsdelivr.net/npm/axios-cache-interceptor@latest/dist/index.es2020.min.js';
```
### Browsers
@ -454,7 +455,8 @@ needed) cache data. There are two simple ones that comes by default:
Both of them are included in all bundles.
You can create your own storage by using the `buildStorage` function. Take a look at this example with [NodeRedis](https://github.com/redis/node-redis) v4.
You can create your own storage by using the `buildStorage` function. Take a look at this
example with [NodeRedis](https://github.com/redis/node-redis) v4.
```js
import { createClient } from 'redis'; // 4.0.1

View File

@ -3,9 +3,7 @@ import type { AxiosStorage, StaleStorageValue } from './types';
const storage = Symbol();
/**
* Returns true if the provided object was created from {@link buildStorage} function.
*/
/** Returns true if the provided object was created from {@link buildStorage} function. */
export const isStorage = (obj: any): obj is AxiosStorage => !!obj && !!obj[storage];
/**