import { EXTENSION_REGISTRY } from './store';
/**
* 根据类别和类型获取扩展
*
* Get the extension by category and type
* @param category - 扩展类别 | Extension category
* @param type - 扩展类型 | Extension type
* @returns 注册的扩展 | Registered extension
* @internal
*/
export function getExtension(category, type) {
var _a;
const extension = (_a = EXTENSION_REGISTRY[category]) === null || _a === void 0 ? void 0 : _a[type];
if (extension) {
return extension;
}
return undefined;
}
/**
* 根据类别获取扩展
*
* Get the extension by category and type
* @param category - 扩展类别 | Extension category
* @returns 注册的扩展 | Registered extension
* @internal
*/
export function getExtensions(category) {
return EXTENSION_REGISTRY[category];
}
//# sourceMappingURL=get.js.map