@selfcommunity/types
Version:
Types to integrate a community created with SelfCommunity.
20 lines (19 loc) • 357 B
TypeScript
import { SCUserType } from './user';
import { SCReactionType } from './reaction';
/**
* SCVoteType interface
*/
export interface SCVoteType {
/**
* The user who voted.
*/
user?: SCUserType;
/**
* The reaction used.
*/
reaction?: SCReactionType;
/**
* Date time of vote.
*/
voted_at?: Date | string;
}