27 lines
683 B
TypeScript
27 lines
683 B
TypeScript
// eslint-disable-next-line import-alias/import-alias
|
|
import "../global.d.ts";
|
|
|
|
export * as api from "./api";
|
|
export * as debug from "./debug";
|
|
export * as managers from "./managers";
|
|
export * as plugins from "./plugins";
|
|
export * as settings from "./settings";
|
|
export * as ui from "./ui";
|
|
export * as utils from "./utils";
|
|
export * as metro from "@metro";
|
|
|
|
const _disposer = new Array<() => unknown>;
|
|
|
|
export function unload() {
|
|
for (const d of _disposer) if (typeof d === "function") d();
|
|
// @ts-expect-error
|
|
delete window.bunny;
|
|
}
|
|
|
|
/**
|
|
* For internal use only, do not use!
|
|
* @internal
|
|
*/
|
|
unload.push = (fn: typeof _disposer[number]) => {
|
|
_disposer.push(fn);
|
|
};
|