From 3c38985113888e4ffbdff28d3f27eccd284c9ea1 Mon Sep 17 00:00:00 2001 From: arthurfiorette Date: Tue, 4 Jan 2022 15:38:32 -0300 Subject: [PATCH] style: prettified code --- README.md | 8 +++++--- src/storage/build.ts | 4 +--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 731be63..619e81b 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/src/storage/build.ts b/src/storage/build.ts index 4fcbcd3..1b6e65b 100644 --- a/src/storage/build.ts +++ b/src/storage/build.ts @@ -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]; /**