UNPKG

@gulibs/tegg-chromadb

Version:

[![NPM version][npm-image]][npm-url] [![Test coverage][codecov-image]][codecov-url] [![Known Vulnerabilities][snyk-image]][snyk-url] [![npm download][download-image]][download-url]

18 lines (17 loc) 597 B
import './config/config.default.js'; export * from 'chromadb'; import { ChromaClient } from 'chromadb'; import type { ChromaClientParams, Collection, CreateCollectionParams } from 'chromadb'; type EggChromaClientParams = ChromaClientParams & { collections?: CreateCollectionParams[]; }; declare module 'egg' { interface Application { chromadb: ChromaClient; collectionMap: Map<string, Collection>; getCollection: (name: keyof Record<string, Collection>) => Collection | undefined; } interface EggAppConfig { chromadb: EggChromaClientParams; } }