D
Size: a a a
D
KB
D
KB
D
D
D
KB
KB
KB
D
kk
D
kk
D
kk
kk
D
import { morphism, StrictSchema } from 'morphism';
import { Image } from '../../common/entity/image.entity';
import { ImageDto } from '../../common/dto/image.dto';
import { imageSchema } from '../../common/schemas/image.schema';
export const catSchema = {
id: 'post.id',
slug: 'post.slug',
name: 'post.name',
image: {
path: 'post.image',
fn: (propertyValue: Image) => {
return morphism<StrictSchema<ImageDto, Image>>(
imageSchema,
propertyValue,
);
},
},
};
kk
D