mirror of
https://github.com/astuto/astuto.git
synced 2025-12-16 19:57:52 +01:00
* 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
15 lines
275 B
TypeScript
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,
|
|
}); |