@lobehub/chat
Version:
Lobe Chat - an open-source, high-performance chatbot framework that supports speech synthesis, multimodal, and extensible Function Call plugin system. Supports one-click free deployment of your private ChatGPT/LLM web application.
17 lines (13 loc) • 437 B
text/typescript
/**
* 存储应用中需要用装饰器的类
*/
export class IoCContainer {
static controllers: WeakMap<
any,
{ methodName: string; mode: 'client' | 'server'; name: string }[]
> = new WeakMap();
static shortcuts: WeakMap<any, { methodName: string; name: string }[]> = new WeakMap();
static protocolHandlers: WeakMap<any, { action: string; methodName: string; urlType: string }[]> =
new WeakMap();
init() {}
}