From 6fa0fb017b429717f66798bfbcf577f55ddf7a4e Mon Sep 17 00:00:00 2001 From: Vendicated Date: Thu, 20 Apr 2023 00:41:02 +0200 Subject: [PATCH] more additions for external plugins --- packages/vencord-types/package.json | 2 +- src/api/index.ts | 1 + src/components/index.ts | 7 +++++++ src/utils/index.ts | 9 +++++++++ 4 files changed, 18 insertions(+), 1 deletion(-) diff --git a/packages/vencord-types/package.json b/packages/vencord-types/package.json index f6c89023..20b92aca 100644 --- a/packages/vencord-types/package.json +++ b/packages/vencord-types/package.json @@ -1,7 +1,7 @@ { "name": "@vencord/types", "private": false, - "version": "0.1.1", + "version": "0.1.3", "description": "", "types": "index.d.ts", "scripts": { diff --git a/src/api/index.ts b/src/api/index.ts index 35b48732..6abf300c 100644 --- a/src/api/index.ts +++ b/src/api/index.ts @@ -110,3 +110,4 @@ export const ContextMenu = $ContextMenu; * Settings lol */ export const Settings = $Settings; +export const settings = $Settings; diff --git a/src/components/index.ts b/src/components/index.ts index 3ee53b02..3b6399a5 100644 --- a/src/components/index.ts +++ b/src/components/index.ts @@ -16,6 +16,13 @@ * along with this program. If not, see . */ +export { default as ErrorBoundary } from "./ErrorBoundary"; +export * from "./ErrorCard"; +export * from "./Flex"; +export * from "./Heart"; +export * from "./Link"; export { default as PatchHelper } from "./PatchHelper"; export { default as PluginSettings } from "./PluginSettings"; +export * from "./Switch"; export { default as VencordSettings } from "./VencordSettings"; + diff --git a/src/utils/index.ts b/src/utils/index.ts index d66d0520..4a05f760 100644 --- a/src/utils/index.ts +++ b/src/utils/index.ts @@ -16,6 +16,7 @@ * along with this program. If not, see . */ + export * from "./ChangeList"; export * as Constants from "./constants"; export * from "./debounce"; @@ -31,3 +32,11 @@ export * from "./proxyLazy"; export * from "./Queue"; export * from "./react"; export * from "./text"; + +import * as t from "./types"; + +export const types = { + // necessary so plugin repo's esbuild doesn't explode + __esModule: true, + ...t +};