From 539e9b23ca084d13406c4f22440d513d6011d024 Mon Sep 17 00:00:00 2001 From: R2m1liA <15258427350@163.com> Date: Thu, 23 Oct 2025 08:45:04 +0000 Subject: [PATCH] =?UTF-8?q?chore:=20=E6=B7=BB=E5=8A=A0TypeScript=E7=B1=BB?= =?UTF-8?q?=E5=9E=8B=E6=A0=87=E6=B3=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/types/meilisearch.ts | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 src/types/meilisearch.ts diff --git a/src/types/meilisearch.ts b/src/types/meilisearch.ts new file mode 100644 index 0000000..83c43c4 --- /dev/null +++ b/src/types/meilisearch.ts @@ -0,0 +1,28 @@ +/** + * MeiliSearch配置类型定义 + */ +export interface MeiliSearchConfig { + host: string; + apiKey: string; +} + +/** + * MeiliSearch索引配置类型定义 + */ +export interface MeiliIndexConfig { + collection_name: string; + index_name: string; + fields: Record; + enabled: boolean; +} + +/** + * MeiliSearch文档类型定义 + */ +export interface MeiliDocs { + /** Directus集合id */ + id: string; + + /** 由用户指定的fields */ + [key: string]: unknown; +} \ No newline at end of file