Skip to content

Commit

Permalink
the request utils object type has been updated for improved clarity
Browse files Browse the repository at this point in the history
  • Loading branch information
OvidijusParsiunas committed Apr 19, 2024
1 parent 4b6427f commit 8b99613
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions component/src/utils/HTTP/requestUtils.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import {Messages} from '../../views/chat/messages/messages';
import {Response as ResponseT} from '../../types/response';
import {Response as ResponseI} from '../../types/response';
import {RequestDetails} from '../../types/interceptors';
import {ServiceIO} from '../../services/serviceIO';
import {GenericObject} from '../../types/object';
Expand Down Expand Up @@ -73,7 +73,7 @@ export class RequestUtils {
return {body: resReqDetails.body, headers: resReqDetails.headers, error: resErrDetails.error};
}

public static validateResponseFormat(response: ResponseT) {
public static validateResponseFormat(response: ResponseI) {
return (
response &&
typeof response === 'object' &&
Expand Down

0 comments on commit 8b99613

Please sign in to comment.