feat(lib/plugins): expose externals lib to plugins
This commit is contained in:
parent
ef5f2ce87c
commit
d08d1a9795
2 changed files with 4 additions and 2 deletions
|
|
@ -1,4 +1,5 @@
|
|||
import * as DiscordLibrary from '@revenge-mod/discord'
|
||||
import * as ExternalsLibrary from '@revenge-mod/externals'
|
||||
import * as ModulesLibrary from '@revenge-mod/modules'
|
||||
import * as PatcherLibrary from '@revenge-mod/patcher'
|
||||
import * as PluginsLibrary from '@revenge-mod/plugins'
|
||||
|
|
@ -21,6 +22,7 @@ const { PluginFlags: Flag, PluginStatus: Status } = PluginsLibrary
|
|||
|
||||
export const _uapi: UnscopedInitPluginApi | UnscopedPluginApi = {
|
||||
discord: DiscordLibrary,
|
||||
externals: ExternalsLibrary,
|
||||
modules: ModulesLibrary,
|
||||
patcher: PatcherLibrary,
|
||||
plugins: PluginsLibrary,
|
||||
|
|
|
|||
|
|
@ -11,9 +11,10 @@ export type PluginStatus = (typeof PS)[keyof typeof PS]
|
|||
*/
|
||||
export interface UnscopedInitPluginApi {
|
||||
discord: typeof import('@revenge-mod/discord')
|
||||
plugins: typeof import('@revenge-mod/plugins')
|
||||
externals: typeof import('@revenge-mod/externals')
|
||||
modules: typeof import('@revenge-mod/modules')
|
||||
patcher: typeof import('@revenge-mod/patcher')
|
||||
plugins: typeof import('@revenge-mod/plugins')
|
||||
react: typeof import('@revenge-mod/react')
|
||||
utils: typeof import('@revenge-mod/utils')
|
||||
}
|
||||
|
|
@ -25,7 +26,6 @@ export interface UnscopedInitPluginApi {
|
|||
export interface UnscopedPluginApi extends UnscopedInitPluginApi {
|
||||
assets: typeof import('@revenge-mod/assets')
|
||||
// ui: typeof import('@revenge-mod/ui')
|
||||
// utils: typeof import('@revenge-mod/utils')
|
||||
}
|
||||
|
||||
export type PluginCleanup = () => any
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue