mirror of
https://gitea.tendokyu.moe/Kayori/Medusa.net.git
synced 2026-10-12 00:58:34 +03:00
Move frontend types into it's own package for a single source of truth
This commit is contained in:
Vendored
+3
-10
@@ -1,21 +1,14 @@
|
||||
import type * as Vue from 'vue'
|
||||
import type * as VueRouter from 'vue-router'
|
||||
import type * as PiniaLib from 'pinia'
|
||||
import 'medusa-plugin-types'
|
||||
|
||||
export interface PluginExportMap {
|
||||
[componentKey: string]: Vue.Component
|
||||
}
|
||||
|
||||
export interface MedusaHostHelpers {
|
||||
getAccessToken: () => string | null
|
||||
}
|
||||
export type { PluginExportMap, MedusaHostHelpers } from 'medusa-plugin-types'
|
||||
|
||||
declare global {
|
||||
interface Window {
|
||||
__medusa_vue__: typeof Vue
|
||||
__medusa_router__: typeof VueRouter
|
||||
__medusa_pinia__: typeof PiniaLib
|
||||
__medusa_plugins__: Record<string, PluginExportMap>
|
||||
__medusa_host__: MedusaHostHelpers
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user