Sharkey/src/misc/get-user-name.ts
2018-07-07 19:19:00 +09:00

5 lines
124 B
TypeScript

import { IUser } from '../models/user';
export default function(user: IUser): string {
return user.name || '名無し';
}