You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
1.1 KiB
34 lines
1.1 KiB
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.getExtension = getExtension;
|
|
exports.getExtensions = getExtensions;
|
|
const store_1 = require("./store");
|
|
/**
|
|
* <zh/> 根据类别和类型获取扩展
|
|
*
|
|
* <en/> Get the extension by category and type
|
|
* @param category - <zh/> 扩展类别 | <en/> Extension category
|
|
* @param type - <zh/> 扩展类型 | <en/> Extension type
|
|
* @returns <zh/> 注册的扩展 | <en/> Registered extension
|
|
* @internal
|
|
*/
|
|
function getExtension(category, type) {
|
|
var _a;
|
|
const extension = (_a = store_1.EXTENSION_REGISTRY[category]) === null || _a === void 0 ? void 0 : _a[type];
|
|
if (extension) {
|
|
return extension;
|
|
}
|
|
return undefined;
|
|
}
|
|
/**
|
|
* <zh/> 根据类别获取扩展
|
|
*
|
|
* <en/> Get the extension by category and type
|
|
* @param category - <zh/> 扩展类别 | <en/> Extension category
|
|
* @returns <zh/> 注册的扩展 | <en/> Registered extension
|
|
* @internal
|
|
*/
|
|
function getExtensions(category) {
|
|
return store_1.EXTENSION_REGISTRY[category];
|
|
}
|
|
//# sourceMappingURL=get.js.map
|