- gif search

- added models to parse the tenor-api-response correctly
- continued with designing the main chat-page
This commit is contained in:
joschuatonn
2024-05-04 19:03:24 +02:00
parent ef105ded6d
commit 1876482e5e
7 changed files with 482 additions and 119 deletions

View File

@@ -10,3 +10,26 @@ export interface responseModel {
message: string;
response: any;
}
export interface tenorGif {
url: string,
duration: number,
preview: string,
dims: Array<number>,
size: number,
}
export interface testType {
nanogif: tenorGif,
mediumgif: tenorGif,
}
export interface tenorResponseElement {
id: string,
title: string,
media_formats: testType,
}
export interface tenorResponse {
results: Array<tenorGif>,
}