UNPKG

@pisell/pisellos

Version:

一个可扩展的前端模块化SDK框架,支持插件系统

24 lines (23 loc) 578 B
interface Resource { id: string; [key: string]: any; } /** * @title: 获取资源map * @description: * @param {any} resourceList * @return {*} * @Author: zhiwei.Wang */ export declare const getResourcesMap: (resourceList: Resource[]) => Record<string, Resource>; /** * @title: 根据ids筛选资源列表 * @description: * @param {any} resourcesMap * @param {any} ids * @return {*} * @Author: zhiwei.Wang * @Date: 2024-09-19 20:23 */ export declare const getResourcesByIds: (resourcesMap: Record<string, Resource>, ids: number[]) => Resource[]; export {};