Files
astuto/app/javascript/interfaces/ILike.ts
Riccardo Graziosi 20f93736f5 Improve UI/UX of Post page (#416)
* Show post content and likes before fetching from backend API
* Autofocus reply and edit forms for comments
* Autofocus title field in post edit form
* More UI/UX improvements
2024-09-26 19:45:48 +02:00

15 lines
275 B
TypeScript

import ILikeJSON from "./json/ILike";
interface ILike {
id: number;
fullName: string;
email: string;
}
export default ILike;
export const likeJSON2JS = (likeJSON: ILikeJSON): ILike => ({
id: likeJSON.id,
fullName: likeJSON.full_name,
email: likeJSON.email,
});