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