wechat-work
Version:
sdk for work.weixin.qq.com/api/doc.
16 lines (15 loc) • 411 B
TypeScript
export interface IApp {
agentId: string;
agentSecret: string;
}
export interface IConfig {
corpId: string;
contactSecret?: string;
externalContactSecret?: string;
apps: IApp[];
getFromCacheMethod: (key: string) => Promise<{
ttlSeconds?: number;
content: string;
}>;
saveToCacheMethod: (key: string, serialized: string, ttlSeconds: number) => Promise<void>;
}