Skip to content

Commit

Permalink
fix: api quickfix
Browse files Browse the repository at this point in the history
  • Loading branch information
pylixonly committed Jul 31, 2024
1 parent 89035fe commit 652449b
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 12 deletions.
2 changes: 2 additions & 0 deletions src/lib/api/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
export * as assets from "./assets";
export * as commands from "./commands";
export * as debug from "./debug";
export * as flux from "./flux";
export * as native from "./native";
export * as patcher from "./patcher";
export * as settings from "./settings";
export * as storage from "./storage";
4 changes: 1 addition & 3 deletions src/lib/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ import "../global.d.ts"; // eslint-disable-line import-alias/import-alias
import "../modules.d.ts"; // eslint-disable-line import-alias/import-alias

export * as api from "./api";
export * as debug from "./api/debug.js";
export * as settings from "./api/settings.js";
export * as fonts from "./fonts";
export * as plugins from "./plugins";
export * as themes from "./themes";
Expand All @@ -17,7 +15,7 @@ import * as themes from "./themes";
import { proxyLazy } from "./utils/lazy";

export const managers = proxyLazy(() => {
console.warn("bunny.managers.* is deprecated, and moved the top level (bunny.*). bunny.manager will be eventually removed soon");
console.warn("bunny.managers.* is deprecated, and moved the top level (bunny.*). bunny.managers will be eventually removed soon");

return {
get fonts() { return fonts; },
Expand Down
File renamed without changes.
19 changes: 10 additions & 9 deletions src/lib/utils/index.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
// Makes mass-importing utils cleaner, chosen over moving utils to one file

export * as constants from "@lib/utils/constants";
export { Emitter } from "@lib/utils/Emitter";
export { findInReactTree } from "@lib/utils/findInReactTree";
export { findInTree } from "@lib/utils/findInTree";
export * as logger from "@lib/utils/logger";
export { safeFetch } from "@lib/utils/safeFetch";
export * as types from "@lib/utils/types";
export * as constants from "./constants";
export { cyrb64 } from "./cyrb64";
export { Emitter } from "./Emitter";
export { findInReactTree } from "./findInReactTree";
export { findInTree } from "./findInTree";
export { hookDefineProperty } from "./hookDefineProperty";
export { default as invariant } from "./invariant";
export * as lazy from "./lazy";
export * as logger from "./logger";
export { safeFetch } from "./safeFetch";

0 comments on commit 652449b

Please sign in to comment.