diff --git a/src/utils/marketplace.ts b/src/utils/marketplace.ts index 993cba3..2bfb8bc 100644 --- a/src/utils/marketplace.ts +++ b/src/utils/marketplace.ts @@ -262,4 +262,15 @@ class Marketplace { } } -export { Marketplace } +export { + Marketplace, + type PluginType, + type MarketplacePluginType, + type PackageType, + type Plug, + type SWPagePlugin, + type SWPluginFunction, + type Events, + type SWPlugin, + type Theme +} diff --git a/src/utils/marketplaceUserTypes.ts b/src/utils/marketplaceUserTypes.ts new file mode 100644 index 0000000..67dd84b --- /dev/null +++ b/src/utils/marketplaceUserTypes.ts @@ -0,0 +1,10 @@ +import { type SWPluginFunction as PluginFunction, type SWPagePlugin, type SWPlugin } from "./marketplace"; + +interface PagePlugin extends Omit {} +interface ServiceWorkerPlugin extends Omit {} + +declare global { + function entryFunc(): PagePlugin | ServiceWorkerPlugin; +} + +export { type PagePlugin, type ServiceWorkerPlugin, type PluginFunction }; diff --git a/src/utils/settings.ts b/src/utils/settings.ts index ce7f323..e745e44 100644 --- a/src/utils/settings.ts +++ b/src/utils/settings.ts @@ -105,6 +105,4 @@ const Settings = { initDefaults } -window.settings = Settings; - export { Settings };