From b8d0c7aa9129c73f57bde03e26f558ba3fb83950 Mon Sep 17 00:00:00 2001 From: Roman Timashev Date: Mon, 24 Feb 2020 02:27:28 +0300 Subject: [PATCH] added person and image related types --- src/types.ts | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) diff --git a/src/types.ts b/src/types.ts index c64d9bcd..1875539f 100644 --- a/src/types.ts +++ b/src/types.ts @@ -67,3 +67,42 @@ export interface IArticle { title: string preview: IImage } + +export type Person = { + id: string + position: string + name: [string, string, string] + post: string + diploma: string + edu: string + file: string + hash: string + shortName: string + status: string + url: string + picture: ImageArtifact + preview: ImageDefinition +} + +export type ImageArtifact = { + width: number + height: number + src: string + set: Array<{ + density: number + url: string + }> +} + +export type ImageDefinition = { + file: string + hash: string + artifacts: { + original: ImageArtifact + large?: ImageArtifact + big?: ImageArtifact + medium?: ImageArtifact + small?: ImageArtifact + fb?: ImageArtifact + } +}