| 123456789101112131415161718 |
- import type { Ref } from './common';
- import { HasObjectId } from './has-object-id';
- import type { IPage } from './page';
- import type { IUser } from './user';
- export type IAttachment = {
- page?: Ref<IPage>,
- creator?: Ref<IUser>,
- createdAt: Date,
- fileSize: number,
- // virtual property
- filePathProxied: string,
- fileFormat: string,
- downloadPathProxied: string,
- originalName: string,
- };
- export type IAttachmentHasId = IAttachment & HasObjectId;
|