Fix-ish frontend models, a generator and a generate command
This commit is contained in:
parent
a6291fd098
commit
a94a360773
14 changed files with 380 additions and 314 deletions
|
@ -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
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue