refactor: stricter domain: attachments
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import { MAX_AUTO_SAVE_SIZE_BYTES } from './attachment.constants';
|
||||
import type { Attachment } from './attachment.models';
|
||||
import { MAX_AUTO_SAVE_SIZE_BYTES } from './constants/attachment.constants';
|
||||
import type { Attachment } from './models/attachment.models';
|
||||
|
||||
export function isAttachmentMedia(attachment: Pick<Attachment, 'mime'>): boolean {
|
||||
return attachment.mime.startsWith('image/') ||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import type { ChatEvent } from '../../../shared-kernel';
|
||||
import type { ChatAttachmentAnnouncement } from '../../../shared-kernel';
|
||||
import type { ChatEvent } from '../../../../shared-kernel';
|
||||
import type { ChatAttachmentAnnouncement } from '../../../../shared-kernel';
|
||||
|
||||
export type FileAnnounceEvent = ChatEvent & {
|
||||
type: 'file-announce';
|
||||
@@ -1,4 +1,4 @@
|
||||
import type { ChatAttachmentMeta } from '../../../shared-kernel';
|
||||
import type { ChatAttachmentMeta } from '../../../../shared-kernel';
|
||||
|
||||
export type AttachmentMeta = ChatAttachmentMeta;
|
||||
|
||||
Reference in New Issue
Block a user