diff --git a/src/models/repositories/emoji.ts b/src/models/repositories/emoji.ts index 24f03574fe..7985c27aba 100644 --- a/src/models/repositories/emoji.ts +++ b/src/models/repositories/emoji.ts @@ -1,14 +1,12 @@ import { EntityRepository, Repository } from 'typeorm'; import { Emoji } from '@/models/entities/emoji'; -import { SchemaType } from '@/misc/schema'; - -export type PackedEmoji = SchemaType; +import { Packed } from '@/misc/schema'; @EntityRepository(Emoji) export class EmojiRepository extends Repository { public async pack( src: Emoji['id'] | Emoji, - ): Promise { + ): Promise> { const emoji = typeof src === 'object' ? src : await this.findOneOrFail(src); return {