Skip to content

Commit

Permalink
update comment
Browse files Browse the repository at this point in the history
  • Loading branch information
cyril-ui-developer committed Apr 26, 2024
1 parent 6f1d409 commit 705d908
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ const consoleFetchCommon = async (
* @param method The HTTP method to use. Defaults to GET
* @param options The options to pass to fetch
* @param timeout The timeout in milliseconds
* @returns A promise that resolves to the response as text, response JSON object or entire content of the HTTP response.
* @returns A promise that resolves to the response as text or response JSON object.
*/
export const consoleFetchJSON: ConsoleFetchJSON = (url, method = 'GET', options = {}, timeout) => {
const allOptions = _.defaultsDeep({}, options, {
Expand All @@ -92,7 +92,7 @@ export const consoleFetchJSON: ConsoleFetchJSON = (url, method = 'GET', options
* @param url The URL to fetch
* @param options The options to pass to fetch
* @param timeout The timeout in milliseconds
* @returns A promise that resolves to the response as text, response JSON object or entire content of the HTTP response.
* @returns A promise that resolves to the response as text or JSON object.
*/
export const consoleFetchText: ConsoleFetchText = (url, options = {}, timeout) => {
return consoleFetchCommon(url, 'GET', options, timeout);
Expand Down

0 comments on commit 705d908

Please sign in to comment.