UNPKG

erest

Version:

Easy to build api server depend on @leizm/web and express.

12 lines (11 loc) 306 B
/** * @file 管理器 * @author Yourtion Guo <yourtion@gmail.com> */ export declare class Manager<T = unknown> { protected map: Map<string, T>; /** 获取 */ get(name: string): T | undefined; /** 遍历 */ forEach(iter: (value: T, key: string, map: Map<string, T>) => void): void; }