api Page updated: refactor to make it looks like article

This commit is contained in:
tmshv committed 2020-03-02 04:40:01 +03:00
1 parent 68b7f4225d
commit 348c3baba8
11 files changed
+160 -63

No files matched your search

+2 -1
View File
@@ -1,4 +1,5 @@
import ImageArtifactType from '../core/ImageArtifactType'
import Image from '../core/Image'
export type ImageArtifactDto = {
height: number
@@ -23,7 +24,7 @@ export type ImageDto = {
file: string
}
export function encodeImage(image): ImageDto {
export function encodeImage(image: Image): ImageDto {
const artifacts = [
ImageArtifactType.SMALL,
ImageArtifactType.MEDIUM,