From 29d912e24eac78f5c20a7f98f81ac6aee930339c Mon Sep 17 00:00:00 2001 From: mike12345567 Date: Wed, 4 Dec 2024 14:32:27 +0000 Subject: [PATCH] Template API typing. --- packages/types/src/api/web/template.ts | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/packages/types/src/api/web/template.ts b/packages/types/src/api/web/template.ts index bd5fdf1cb0..34b846b7ef 100644 --- a/packages/types/src/api/web/template.ts +++ b/packages/types/src/api/web/template.ts @@ -1,4 +1,20 @@ -export interface FetchTemplateResponse {} +export enum TemplateType { + APP = "app", +} + +export interface Template { + background: string + icon: string + category: string + description: string + name: string + url: string + type: TemplateType + key: string + image: string +} + +export type FetchTemplateResponse = Template[] export interface DownloadTemplateResponse { message: string