linstrom/frontend-reactive/app/models/reaction.ts

16 lines
399 B
TypeScript
Raw Normal View History

import Model, { attr } from '@ember-data/model';
import type EmoteModel from './emote';
2024-11-20 14:39:24 +00:00
export default class Reaction extends Model {
@attr declare noteId: string;
@attr declare reactorId: string;
@attr declare emoteId: number;
@attr declare emote: EmoteModel;
2024-11-20 14:39:24 +00:00
}
declare module 'ember-data/types/registries/model' {
export default interface ModelRegistry {
reaction: Reaction;
}
}