TuitioUserInfo type rename

master
Tudor Stanciu 2023-03-29 11:21:36 +03:00
parent 425a6ccfc0
commit f38c2d9940
2 changed files with 3 additions and 3 deletions

View File

@ -6,7 +6,7 @@ import { storageKeys } from "./constants";
import { getUrlTemplates } from "./config";
import { isValidURL } from "./utils/validations";
import type { UrlTemplates } from "./config";
import type { TuitioLoginResponse, TuitioLogoutResponse, TuitioUserInfoResponse } from "./types";
import type { TuitioLoginResponse, TuitioLogoutResponse, TuitioUserInfo } from "./types";
const { setItem, getItem, removeItem } = localStorage;
@ -50,7 +50,7 @@ class TuitioClient {
return response;
}
async getUserInfo(): Promise<TuitioUserInfoResponse> {
async getUserInfo(): Promise<TuitioUserInfo> {
const url = this.urlTemplates.userInfo;
const response = await request(url, "get");
return response;

View File

@ -9,7 +9,7 @@ export type TuitioUserContactOption = {
contactValue: string;
};
export type TuitioUserInfoResponse = {
export type TuitioUserInfo = {
userId: number;
userName: string;
firstName: string;