mirror of
https://github.com/johannesjo/super-productivity.git
synced 2026-01-24 03:06:16 +00:00
- 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
44 lines
1.3 KiB
JavaScript
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;
|
|
},
|
|
});
|