Skip to content

Commit

Permalink
style(cache): typographical error on jsdoc
Browse files Browse the repository at this point in the history
Refs: #6392
  • Loading branch information
Mousticke committed Jun 7, 2022
1 parent 21c04a6 commit 9a53080
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/utils/cache.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export const writeToCache = <T>(key: string, value: T): void => {
/**
* Retrieve the value stored in the local storage for a given key
* If the value is not defined or the key does not exist, return a default CacheStorage
* with a empty value and timestamp set to 0
* with an empty value and timestamp set to 0
* @see CacheStorage
* @param {string} key stored in the local storage
* @returns
Expand Down Expand Up @@ -61,7 +61,7 @@ const getCachedData = <T>(url: string): CacheStorage<T> => readFromCache(url)

/**
* Get the data response from the local storage or the API
* @param {string} url Url of the API
* @param {string} url of the API
* @returns {T} data from the API or the local storage
*/
export const getData = async <T>(url: string): Promise<T> => {
Expand Down

0 comments on commit 9a53080

Please sign in to comment.