1
0
mirror of https://github.com/hotomoe/hotomoe synced 2024-12-24 03:28:13 +09:00
hotomoe/src/common/get-user-summary.ts

13 lines
455 B
TypeScript
Raw Normal View History

2017-10-07 17:20:47 +09:00
import { IUser } from '../api/models/user';
/**
*
* @param user
*/
export default function(user: IUser): string {
return `${user.name} (@${user.username})\n` +
`${user.posts_count}投稿、${user.following_count}フォロー、${user.followers_count}フォロワー\n` +
`場所: ${user.profile.location}、誕生日: ${user.profile.birthday}\n` +
`${user.description}`;
}