UNPKG

@tnwx/accesstoken

Version:

TNWX 微信系开发脚手架之微信 accesstoken

23 lines (22 loc) 878 B
import { ApiConfig } from './ApiConfig'; import { ICache } from '@tnwx/cache'; export declare class ApiConfigKit { static CFG_MAP: Map<String, ApiConfig>; static currentAppId: string; static DEFAULT_CFG_KEY: string; static devMode: boolean; static _cache: ICache; set devMode(devMode: boolean); static isDevMode(): boolean; static putApiConfig(apiConfig: ApiConfig): Map<String, ApiConfig>; static removeApiConfigByConfig(apiConfig: ApiConfig): boolean; static removeApiConfig(appId: string): boolean; static setCurrentAppId(appId?: string): void; static removeCurrentAppId(): void; static get getAppId(): string; static get getToken(): string; static get getApiConfig(): ApiConfig; static getApiConfigByAppId(appId: string): ApiConfig; static get getCache(): ICache; static set setCache(cache: ICache); }