super-productivity/packages/plugin-api/dist/index.js
Johannes Millan 9fa0540296 fix(plugin-api): export PluginHooks as value not just type
- PluginHooks is an enum that needs to be used as a value in runtime code
- Changed from type-only export to regular export to fix TypeScript errors
- Keeps Hooks as type-only export since it's just a type alias
2025-06-19 14:25:42 +02:00

44 lines
1.3 KiB
JavaScript

'use strict';
// Super Productivity Plugin API Types
// Official TypeScript definitions for developing Super Productivity plugins
var __createBinding =
(this && this.__createBinding) ||
(Object.create
? function (o, m, k, k2) {
if (k2 === undefined) k2 = k;
var desc = Object.getOwnPropertyDescriptor(m, k);
if (
!desc ||
('get' in desc ? !m.__esModule : desc.writable || desc.configurable)
) {
desc = {
enumerable: true,
get: function () {
return m[k];
},
};
}
Object.defineProperty(o, k2, desc);
}
: function (o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
});
var __exportStar =
(this && this.__exportStar) ||
function (m, exports) {
for (var p in m)
if (p !== 'default' && !Object.prototype.hasOwnProperty.call(exports, p))
__createBinding(exports, m, p);
};
Object.defineProperty(exports, '__esModule', { value: true });
exports.PluginHooks = void 0;
__exportStar(require('./types'), exports);
// Re-export enums as values (not just types) so they can be used
var types_1 = require('./types');
Object.defineProperty(exports, 'PluginHooks', {
enumerable: true,
get: function () {
return types_1.PluginHooks;
},
});