@backstage/backend-plugin-api
Version:
Core API used by Backstage backend plugins
21 lines (18 loc) • 474 B
JavaScript
;
function createExtensionPoint(options) {
return {
id: options.id,
get T() {
if (process.env.NODE_ENV === "test") {
return null;
}
throw new Error(`tried to read ExtensionPoint.T of ${this}`);
},
toString() {
return `extensionPoint{${options.id}}`;
},
$$type: "@backstage/ExtensionPoint"
};
}
exports.createExtensionPoint = createExtensionPoint;
//# sourceMappingURL=createExtensionPoint.cjs.js.map