From fce7d6b6814c70fe71baee57f272f4f3717c4379 Mon Sep 17 00:00:00 2001 From: Vendicated Date: Mon, 30 Jan 2023 04:53:28 +0100 Subject: [PATCH] Make webpack types importable from @webpack/types --- .vscode/extensions.json | 3 +-- src/webpack/common/types/index.d.ts | 23 +++++++++++++++++++++++ tsconfig.json | 9 +++++---- 3 files changed, 29 insertions(+), 6 deletions(-) create mode 100644 src/webpack/common/types/index.d.ts diff --git a/.vscode/extensions.json b/.vscode/extensions.json index 8922d157..54ebaeb9 100644 --- a/.vscode/extensions.json +++ b/.vscode/extensions.json @@ -1,11 +1,10 @@ { "recommendations": [ "EditorConfig.EditorConfig", - "pmneo.tsimporter", "dbaeumer.vscode-eslint", "formulahendry.auto-rename-tag", "GregorBiswanger.json2ts", "eamodio.gitlens", - "kamikillerto.vscode-colorize" + "ExodiusStudios.comment-anchors" ] } diff --git a/src/webpack/common/types/index.d.ts b/src/webpack/common/types/index.d.ts new file mode 100644 index 00000000..9d6c2950 --- /dev/null +++ b/src/webpack/common/types/index.d.ts @@ -0,0 +1,23 @@ +/* + * Vencord, a modification for Discord's desktop app + * Copyright (c) 2023 Vendicated and contributors + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . +*/ + +export * from "./components"; +export * from "./fluxEvents"; +export * from "./menu"; +export * from "./utils"; + diff --git a/tsconfig.json b/tsconfig.json index a55c1fe3..f811c00a 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -18,11 +18,12 @@ "baseUrl": "./src/", "paths": { - "@webpack": ["./webpack"], - "@webpack/common": ["./webpack/common"], - "@utils/*": ["./utils/*"], "@api/*": ["./api/*"], - "@components/*": ["./components/*"] + "@components/*": ["./components/*"], + "@utils/*": ["./utils/*"], + "@webpack/types": ["./webpack/common/types"], + "@webpack/common": ["./webpack/common"], + "@webpack": ["./webpack/webpack"] } }, "include": ["src/**/*"]