revenge-bundle-next/types/globals.consumers.ts
2026-08-09 07:27:56 +00:00

28 lines
724 B
TypeScript

import type {
PluginApiExtensionsOptions,
PluginOptions,
UnscopedInitPluginApi,
UnscopedPluginApi,
UnscopedPreInitPluginApi,
} from '@revenge-mod/plugins/types'
declare global {
/**
* Defines an entrypoint for a Revenge JS plugin.
*/
export function plugin<O extends PluginApiExtensionsOptions>(
options: PluginOptions<O>,
): PluginOptions<O>
/**
* The unscoped plugin API. **Use directly only when necessary.**
*
* You should be using the `unscoped` property of the `PluginApi` object instead.
*/
export const revenge:
| UnscopedPreInitPluginApi
| UnscopedInitPluginApi
| UnscopedPluginApi
}
export * from './globals'