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

16 lines
392 B
TypeScript
Raw Normal View History

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