mbeauv/urbanoe-model

View on GitHub
src/Comment.js

Summary

Maintainability
A
0 mins
Test Coverage
// @flow

import type { UserInfo } from './UserInfo';

/**
 * Comment on a given issue.
 */
export type Comment = {

  /** Unique identifier for the comment. */
  +id: number,

  /** Information on the user who made the comment. */
  +author: UserInfo,

  /** Content of the comment. */
  +message: string,

  /** Time at which the comment was made (since epoch). */
  +commentedOn: number,
};