Fix-ish frontend models, a generator and a generate command

This commit is contained in:
Melody Becker 2024-11-20 16:11:11 +01:00
parent a6291fd098
commit a94a360773
14 changed files with 380 additions and 314 deletions

View file

@ -1,9 +1,15 @@
import Model, { attr } from '@ember-data/model'
import type EmoteModel from './emote'
export default class ReactionModel extends Model {
export default class Reaction extends Model {
@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
}
}