@vencord/types 0.1.0 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (268) hide show
  1. package/{dist/api → api}/index.d.ts +5 -0
  2. package/{dist/api → api}/settings.d.ts +1 -1
  3. package/{dist/components → components}/ErrorBoundary.d.ts +1 -1
  4. package/{dist/components → components}/PluginSettings/PluginModal.d.ts +2 -2
  5. package/{dist/components → components}/PluginSettings/components/SettingBooleanComponent.d.ts +1 -1
  6. package/{dist/components → components}/PluginSettings/components/SettingCustomComponent.d.ts +1 -1
  7. package/{dist/components → components}/PluginSettings/components/SettingNumericComponent.d.ts +1 -1
  8. package/{dist/components → components}/PluginSettings/components/SettingSelectComponent.d.ts +1 -1
  9. package/{dist/components → components}/PluginSettings/components/SettingSliderComponent.d.ts +1 -1
  10. package/{dist/components → components}/PluginSettings/components/SettingTextComponent.d.ts +1 -1
  11. package/{dist/components → components}/PluginSettings/components/index.d.ts +1 -1
  12. package/globals.d.ts +24 -0
  13. package/index.d.ts +3 -3
  14. package/package.json +1 -1
  15. package/{dist/plugins → plugins}/anonymiseFileNames.d.ts +1 -1
  16. package/{dist/plugins → plugins}/apiBadges.d.ts +1 -1
  17. package/{dist/plugins → plugins}/banger.d.ts +1 -1
  18. package/{dist/plugins → plugins}/betterFolders/index.d.ts +2 -2
  19. package/{dist/plugins → plugins}/betterNotes.d.ts +1 -1
  20. package/{dist/plugins → plugins}/betterRoleDot.d.ts +1 -1
  21. package/{dist/plugins → plugins}/blurNsfw.d.ts +1 -1
  22. package/{dist/plugins → plugins}/callTimer.d.ts +1 -1
  23. package/{dist/plugins → plugins}/clearURLs/index.d.ts +1 -1
  24. package/{dist/plugins → plugins}/consoleShortcuts.d.ts +4 -4
  25. package/{dist/plugins → plugins}/crashHandler.d.ts +2 -2
  26. package/{dist/plugins → plugins}/customRPC.d.ts +2 -2
  27. package/{dist/plugins → plugins}/devCompanion.dev.d.ts +2 -2
  28. package/{dist/plugins → plugins}/experiments.d.ts +2 -2
  29. package/{dist/plugins → plugins}/fakeNitro.d.ts +2 -2
  30. package/{dist/plugins → plugins}/fakeProfileThemes.d.ts +2 -2
  31. package/{dist/plugins → plugins}/fart.d.ts +3 -3
  32. package/{dist/plugins → plugins}/friendInvites.d.ts +3 -3
  33. package/{dist/plugins → plugins}/fxTwitter.d.ts +1 -1
  34. package/{dist/plugins → plugins}/imageZoom/index.d.ts +4 -4
  35. package/{dist/plugins → plugins}/index.d.ts +2 -2
  36. package/{dist/plugins → plugins}/invisibleChat/index.d.ts +2 -2
  37. package/{dist/plugins → plugins}/lastfm.d.ts +2 -2
  38. package/{dist/plugins → plugins}/messageClickActions.d.ts +1 -1
  39. package/{dist/plugins → plugins}/messageLinkEmbeds.d.ts +2 -2
  40. package/{dist/plugins → plugins}/messageLogger/index.d.ts +1 -1
  41. package/{dist/plugins → plugins}/messageTags.d.ts +3 -3
  42. package/{dist/plugins → plugins}/moreCommands.d.ts +5 -5
  43. package/{dist/plugins → plugins}/moreKaomoji.d.ts +2 -2
  44. package/{dist/plugins → plugins}/moreUserTags.d.ts +2 -2
  45. package/{dist/plugins → plugins}/moyai.d.ts +2 -2
  46. package/{dist/plugins → plugins}/noBlockedMessages.d.ts +1 -1
  47. package/{dist/plugins → plugins}/noCanaryMessageLinks.d.ts +2 -2
  48. package/{dist/plugins → plugins}/noReplyMention.d.ts +2 -2
  49. package/{dist/plugins → plugins}/petpet.d.ts +1 -1
  50. package/{dist/plugins → plugins}/pinDms/index.d.ts +2 -2
  51. package/{dist/plugins → plugins}/pinDms/settings.d.ts +2 -2
  52. package/{dist/plugins → plugins}/platformIndicators.d.ts +1 -1
  53. package/{dist/plugins → plugins}/pronoundb/index.d.ts +1 -1
  54. package/{dist/plugins → plugins}/quickReply.d.ts +2 -2
  55. package/{dist/plugins → plugins}/relationshipNotifier/events.d.ts +1 -1
  56. package/{dist/plugins → plugins}/relationshipNotifier/index.d.ts +7 -7
  57. package/{dist/plugins → plugins}/relationshipNotifier/settings.d.ts +2 -2
  58. package/{dist/plugins → plugins}/reviewDB/index.d.ts +1 -1
  59. package/{dist/plugins → plugins}/roleColorEverywhere.d.ts +2 -2
  60. package/{dist/plugins → plugins}/serverListIndicators.d.ts +1 -1
  61. package/{dist/plugins → plugins}/settings.d.ts +1 -1
  62. package/{dist/plugins → plugins}/shikiCodeblocks/index.d.ts +6 -6
  63. package/{dist/plugins → plugins}/shikiCodeblocks/settings.d.ts +2 -2
  64. package/{dist/plugins → plugins}/showHiddenChannels/index.d.ts +2 -2
  65. package/{dist/plugins → plugins}/showMeYourName/index.d.ts +2 -2
  66. package/{dist/plugins → plugins}/silentMessageToggle.d.ts +2 -2
  67. package/{dist/plugins → plugins}/silentTyping.d.ts +4 -4
  68. package/{dist/plugins → plugins}/sortFriendRequests.d.ts +1 -1
  69. package/{dist/plugins → plugins}/spotifyControls/index.d.ts +1 -1
  70. package/{dist/plugins → plugins}/spotifyCrack.d.ts +2 -2
  71. package/{dist/plugins → plugins}/spotifyShareCommands.d.ts +2 -2
  72. package/{dist/plugins → plugins}/typingIndicator.d.ts +2 -2
  73. package/{dist/plugins → plugins}/typingTweaks.d.ts +2 -2
  74. package/{dist/plugins → plugins}/unindent.d.ts +1 -1
  75. package/{dist/plugins → plugins}/urbanDictionary.d.ts +3 -3
  76. package/{dist/plugins → plugins}/userVoiceShow/index.d.ts +2 -2
  77. package/{dist/plugins → plugins}/usrbg/index.d.ts +2 -2
  78. package/{dist/plugins → plugins}/uwuify.d.ts +2 -2
  79. package/{dist/plugins → plugins}/vcNarrator.d.ts +1 -1
  80. package/{dist/plugins → plugins}/viewIcons.d.ts +2 -2
  81. package/{dist/plugins → plugins}/volumeBooster.discordDesktop.d.ts +2 -2
  82. package/{dist/plugins → plugins}/webContextMenus.web.d.ts +2 -2
  83. package/{dist/plugins → plugins}/welcomeStickerPicker.d.ts +2 -2
  84. package/{dist/plugins → plugins}/wikisearch.d.ts +2 -2
  85. package/{dist/utils → utils}/index.d.ts +4 -2
  86. package/{dist/utils → utils}/react.d.ts +1 -1
  87. package/{dist/utils → utils}/types.d.ts +1 -1
  88. package/webpack/common/types/components.d.ts +327 -0
  89. package/webpack/common/types/fluxEvents.d.ts +40 -0
  90. package/webpack/common/types/index.d.ts +24 -0
  91. package/webpack/common/types/menu.d.ts +83 -0
  92. package/webpack/common/types/stores.d.ts +40 -0
  93. package/webpack/common/types/utils.d.ts +113 -0
  94. package/dist/globals.d.ts +0 -72
  95. /package/{dist/Vencord.d.ts → Vencord.d.ts} +0 -0
  96. /package/{dist/VencordNative.d.ts → VencordNative.d.ts} +0 -0
  97. /package/{dist/api → api}/Badges.d.ts +0 -0
  98. /package/{dist/api → api}/Commands/commandHelpers.d.ts +0 -0
  99. /package/{dist/api → api}/Commands/index.d.ts +0 -0
  100. /package/{dist/api → api}/Commands/types.d.ts +0 -0
  101. /package/{dist/api → api}/ContextMenu.d.ts +0 -0
  102. /package/{dist/api → api}/DataStore/index.d.ts +0 -0
  103. /package/{dist/api → api}/MemberListDecorators.d.ts +0 -0
  104. /package/{dist/api → api}/MessageAccessories.d.ts +0 -0
  105. /package/{dist/api → api}/MessageDecorations.d.ts +0 -0
  106. /package/{dist/api → api}/MessageEvents.d.ts +0 -0
  107. /package/{dist/api → api}/MessagePopover.d.ts +0 -0
  108. /package/{dist/api → api}/Notices.d.ts +0 -0
  109. /package/{dist/api → api}/Notifications/NotificationComponent.d.ts +0 -0
  110. /package/{dist/api → api}/Notifications/Notifications.d.ts +0 -0
  111. /package/{dist/api → api}/Notifications/index.d.ts +0 -0
  112. /package/{dist/api → api}/Notifications/notificationLog.d.ts +0 -0
  113. /package/{dist/api → api}/ServerList.d.ts +0 -0
  114. /package/{dist/api → api}/SettingsStore.d.ts +0 -0
  115. /package/{dist/api → api}/Styles.d.ts +0 -0
  116. /package/{dist/components → components}/Badge.d.ts +0 -0
  117. /package/{dist/components → components}/CheckedTextInput.d.ts +0 -0
  118. /package/{dist/components → components}/DonateButton.d.ts +0 -0
  119. /package/{dist/components → components}/ErrorCard.d.ts +0 -0
  120. /package/{dist/components → components}/Flex.d.ts +0 -0
  121. /package/{dist/components → components}/Heart.d.ts +0 -0
  122. /package/{dist/components → components}/Link.d.ts +0 -0
  123. /package/{dist/components → components}/Monaco.d.ts +0 -0
  124. /package/{dist/components → components}/PatchHelper.d.ts +0 -0
  125. /package/{dist/components → components}/PluginSettings/index.d.ts +0 -0
  126. /package/{dist/components → components}/Switch.d.ts +0 -0
  127. /package/{dist/components → components}/VencordSettings/BackupRestoreTab.d.ts +0 -0
  128. /package/{dist/components → components}/VencordSettings/CloudTab.d.ts +0 -0
  129. /package/{dist/components → components}/VencordSettings/PluginsTab.d.ts +0 -0
  130. /package/{dist/components → components}/VencordSettings/ThemesTab.d.ts +0 -0
  131. /package/{dist/components → components}/VencordSettings/Updater.d.ts +0 -0
  132. /package/{dist/components → components}/VencordSettings/VencordTab.d.ts +0 -0
  133. /package/{dist/components → components}/VencordSettings/index.d.ts +0 -0
  134. /package/{dist/components → components}/handleComponentFailed.d.ts +0 -0
  135. /package/{dist/components → components}/index.d.ts +0 -0
  136. /package/{dist/modules.d.ts → modules.d.ts} +0 -0
  137. /package/{dist/plugins → plugins}/alwaysAnimate.d.ts +0 -0
  138. /package/{dist/plugins → plugins}/alwaysTrust.d.ts +0 -0
  139. /package/{dist/plugins → plugins}/apiCommands.d.ts +0 -0
  140. /package/{dist/plugins → plugins}/apiContextMenu.d.ts +0 -0
  141. /package/{dist/plugins → plugins}/apiMemberListDecorators.d.ts +0 -0
  142. /package/{dist/plugins → plugins}/apiMessageAccessories.d.ts +0 -0
  143. /package/{dist/plugins → plugins}/apiMessageDecorations.d.ts +0 -0
  144. /package/{dist/plugins → plugins}/apiMessageEvents.d.ts +0 -0
  145. /package/{dist/plugins → plugins}/apiMessagePopover.d.ts +0 -0
  146. /package/{dist/plugins → plugins}/apiNotices.d.ts +0 -0
  147. /package/{dist/plugins → plugins}/apiServerList.d.ts +0 -0
  148. /package/{dist/plugins → plugins}/apiSettingsStore.d.ts +0 -0
  149. /package/{dist/plugins → plugins}/arRPC.web.d.ts +0 -0
  150. /package/{dist/plugins → plugins}/betterFolders/FolderSideBar.d.ts +0 -0
  151. /package/{dist/plugins → plugins}/betterGifAltText.d.ts +0 -0
  152. /package/{dist/plugins → plugins}/betterUploadButton.d.ts +0 -0
  153. /package/{dist/plugins → plugins}/clearURLs/defaultRules.d.ts +0 -0
  154. /package/{dist/plugins → plugins}/colorSighted.d.ts +0 -0
  155. /package/{dist/plugins → plugins}/disableDMCallIdle.d.ts +0 -0
  156. /package/{dist/plugins → plugins}/emoteCloner.d.ts +0 -0
  157. /package/{dist/plugins → plugins}/f8break.d.ts +0 -0
  158. /package/{dist/plugins → plugins}/fixInbox.d.ts +0 -0
  159. /package/{dist/plugins → plugins}/forceOwnerCrown.d.ts +0 -0
  160. /package/{dist/plugins → plugins}/gameActivityToggle/index.d.ts +0 -0
  161. /package/{dist/plugins → plugins}/gifPaste.d.ts +0 -0
  162. /package/{dist/plugins → plugins}/hideAttachments.d.ts +0 -0
  163. /package/{dist/plugins → plugins}/highResAvatars.d.ts +0 -0
  164. /package/{dist/plugins → plugins}/iLoveSpam.d.ts +0 -0
  165. /package/{dist/plugins → plugins}/ignoreActivities.d.ts +0 -0
  166. /package/{dist/plugins → plugins}/imageZoom/components/Magnifier.d.ts +0 -0
  167. /package/{dist/plugins → plugins}/imageZoom/constants.d.ts +0 -0
  168. /package/{dist/plugins → plugins}/imageZoom/utils/waitFor.d.ts +0 -0
  169. /package/{dist/plugins → plugins}/invisibleChat/components/DecryptionModal.d.ts +0 -0
  170. /package/{dist/plugins → plugins}/invisibleChat/components/EncryptionModal.d.ts +0 -0
  171. /package/{dist/plugins → plugins}/keepCurrentChannel.d.ts +0 -0
  172. /package/{dist/plugins → plugins}/loadingQuotes.d.ts +0 -0
  173. /package/{dist/plugins → plugins}/memberCount.d.ts +0 -0
  174. /package/{dist/plugins → plugins}/muteNewGuild.d.ts +0 -0
  175. /package/{dist/plugins → plugins}/noDevtoolsWarning.d.ts +0 -0
  176. /package/{dist/plugins → plugins}/noF1.d.ts +0 -0
  177. /package/{dist/plugins → plugins}/noRPC.discordDesktop.d.ts +0 -0
  178. /package/{dist/plugins → plugins}/noScreensharePreview.d.ts +0 -0
  179. /package/{dist/plugins → plugins}/noSystemBadge.discordDesktop.d.ts +0 -0
  180. /package/{dist/plugins → plugins}/noTrack.d.ts +0 -0
  181. /package/{dist/plugins → plugins}/noUnblockToJump.d.ts +0 -0
  182. /package/{dist/plugins → plugins}/nsfwGateBypass.d.ts +0 -0
  183. /package/{dist/plugins → plugins}/oneko.d.ts +0 -0
  184. /package/{dist/plugins → plugins}/pinDms/contextMenus.d.ts +0 -0
  185. /package/{dist/plugins → plugins}/plainFolderIcon.d.ts +0 -0
  186. /package/{dist/plugins → plugins}/pronoundb/components/PronounsAboutComponent.d.ts +0 -0
  187. /package/{dist/plugins → plugins}/pronoundb/components/PronounsChatComponent.d.ts +0 -0
  188. /package/{dist/plugins → plugins}/pronoundb/components/PronounsProfileWrapper.d.ts +0 -0
  189. /package/{dist/plugins → plugins}/pronoundb/pronoundbUtils.d.ts +0 -0
  190. /package/{dist/plugins → plugins}/pronoundb/types.d.ts +0 -0
  191. /package/{dist/plugins → plugins}/quickMention.d.ts +0 -0
  192. /package/{dist/plugins → plugins}/readAllNotificationsButton.d.ts +0 -0
  193. /package/{dist/plugins → plugins}/relationshipNotifier/functions.d.ts +0 -0
  194. /package/{dist/plugins → plugins}/relationshipNotifier/types.d.ts +0 -0
  195. /package/{dist/plugins → plugins}/relationshipNotifier/utils.d.ts +0 -0
  196. /package/{dist/plugins → plugins}/revealAllSpoilers.d.ts +0 -0
  197. /package/{dist/plugins → plugins}/reverseImageSearch.d.ts +0 -0
  198. /package/{dist/plugins → plugins}/reviewDB/Utils/ReviewDBAPI.d.ts +0 -0
  199. /package/{dist/plugins → plugins}/reviewDB/Utils/Utils.d.ts +0 -0
  200. /package/{dist/plugins → plugins}/reviewDB/components/MessageButton.d.ts +0 -0
  201. /package/{dist/plugins → plugins}/reviewDB/components/ReviewBadge.d.ts +0 -0
  202. /package/{dist/plugins → plugins}/reviewDB/components/ReviewComponent.d.ts +0 -0
  203. /package/{dist/plugins → plugins}/reviewDB/components/ReviewsView.d.ts +0 -0
  204. /package/{dist/plugins → plugins}/reviewDB/entities/Badge.d.ts +0 -0
  205. /package/{dist/plugins → plugins}/reviewDB/entities/Review.d.ts +0 -0
  206. /package/{dist/plugins → plugins}/searchReply.d.ts +0 -0
  207. /package/{dist/plugins → plugins}/sendTimestamps/index.d.ts +0 -0
  208. /package/{dist/plugins → plugins}/shikiCodeblocks/api/languages.d.ts +0 -0
  209. /package/{dist/plugins → plugins}/shikiCodeblocks/api/shiki.d.ts +0 -0
  210. /package/{dist/plugins → plugins}/shikiCodeblocks/api/themes.d.ts +0 -0
  211. /package/{dist/plugins → plugins}/shikiCodeblocks/components/ButtonRow.d.ts +0 -0
  212. /package/{dist/plugins → plugins}/shikiCodeblocks/components/Code.d.ts +0 -0
  213. /package/{dist/plugins → plugins}/shikiCodeblocks/components/CopyButton.d.ts +0 -0
  214. /package/{dist/plugins → plugins}/shikiCodeblocks/components/Header.d.ts +0 -0
  215. /package/{dist/plugins → plugins}/shikiCodeblocks/components/Highlighter.d.ts +0 -0
  216. /package/{dist/plugins → plugins}/shikiCodeblocks/hooks/useCopyCooldown.d.ts +0 -0
  217. /package/{dist/plugins → plugins}/shikiCodeblocks/hooks/useShikiSettings.d.ts +0 -0
  218. /package/{dist/plugins → plugins}/shikiCodeblocks/hooks/useTheme.d.ts +0 -0
  219. /package/{dist/plugins → plugins}/shikiCodeblocks/previewExample.d.ts +0 -0
  220. /package/{dist/plugins → plugins}/shikiCodeblocks/types.d.ts +0 -0
  221. /package/{dist/plugins → plugins}/shikiCodeblocks/utils/color.d.ts +0 -0
  222. /package/{dist/plugins → plugins}/shikiCodeblocks/utils/createStyle.d.ts +0 -0
  223. /package/{dist/plugins → plugins}/shikiCodeblocks/utils/misc.d.ts +0 -0
  224. /package/{dist/plugins → plugins}/showHiddenChannels/components/HiddenChannelLockScreen.d.ts +0 -0
  225. /package/{dist/plugins → plugins}/spotifyControls/PlayerComponent.d.ts +0 -0
  226. /package/{dist/plugins → plugins}/startupTimings/StartupTimingPage.d.ts +0 -0
  227. /package/{dist/plugins → plugins}/startupTimings/index.d.ts +0 -0
  228. /package/{dist/plugins → plugins}/supportHelper.d.ts +0 -0
  229. /package/{dist/plugins → plugins}/timeBarAllActivities.d.ts +0 -0
  230. /package/{dist/plugins → plugins}/unminifyErrors.d.ts +0 -0
  231. /package/{dist/plugins → plugins}/userVoiceShow/components/VoiceChannelSection.d.ts +0 -0
  232. /package/{dist/plugins → plugins}/vcDoubleClick.d.ts +0 -0
  233. /package/{dist/plugins → plugins}/viewRaw.d.ts +0 -0
  234. /package/{dist/plugins → plugins}/whoReacted.d.ts +0 -0
  235. /package/{dist/utils → utils}/ChangeList.d.ts +0 -0
  236. /package/{dist/utils → utils}/IpcEvents.d.ts +0 -0
  237. /package/{dist/utils → utils}/Logger.d.ts +0 -0
  238. /package/{dist/utils → utils}/Queue.d.ts +0 -0
  239. /package/{dist/utils → utils}/cloud.d.ts +0 -0
  240. /package/{dist/utils → utils}/constants.d.ts +0 -0
  241. /package/{dist/utils → utils}/debounce.d.ts +0 -0
  242. /package/{dist/utils → utils}/dependencies.d.ts +0 -0
  243. /package/{dist/utils → utils}/discord.d.ts +0 -0
  244. /package/{dist/utils → utils}/guards.d.ts +0 -0
  245. /package/{dist/utils → utils}/localStorage.d.ts +0 -0
  246. /package/{dist/utils → utils}/margins.d.ts +0 -0
  247. /package/{dist/utils → utils}/misc.d.ts +0 -0
  248. /package/{dist/utils → utils}/modal.d.ts +0 -0
  249. /package/{dist/utils → utils}/native.d.ts +0 -0
  250. /package/{dist/utils → utils}/onceDefined.d.ts +0 -0
  251. /package/{dist/utils → utils}/patches.d.ts +0 -0
  252. /package/{dist/utils → utils}/proxyLazy.d.ts +0 -0
  253. /package/{dist/utils → utils}/quickCss.d.ts +0 -0
  254. /package/{dist/utils → utils}/settingsSync.d.ts +0 -0
  255. /package/{dist/utils → utils}/text.d.ts +0 -0
  256. /package/{dist/utils → utils}/updater.d.ts +0 -0
  257. /package/{dist/utils → utils}/web.d.ts +0 -0
  258. /package/{dist/webpack → webpack}/common/components.d.ts +0 -0
  259. /package/{dist/webpack → webpack}/common/index.d.ts +0 -0
  260. /package/{dist/webpack → webpack}/common/internal.d.ts +0 -0
  261. /package/{dist/webpack → webpack}/common/menu.d.ts +0 -0
  262. /package/{dist/webpack → webpack}/common/react.d.ts +0 -0
  263. /package/{dist/webpack → webpack}/common/stores.d.ts +0 -0
  264. /package/{dist/webpack → webpack}/common/types/i18nMessages.d.ts +0 -0
  265. /package/{dist/webpack → webpack}/common/utils.d.ts +0 -0
  266. /package/{dist/webpack → webpack}/index.d.ts +0 -0
  267. /package/{dist/webpack → webpack}/patchWebpack.d.ts +0 -0
  268. /package/{dist/webpack → webpack}/webpack.d.ts +0 -0
@@ -10,6 +10,7 @@ import * as $MessagePopover from "./MessagePopover";
10
10
  import * as $Notices from "./Notices";
11
11
  import * as $Notifications from "./Notifications";
12
12
  import * as $ServerList from "./ServerList";
13
+ import * as $Settings from "./settings";
13
14
  import * as $SettingsStore from "./SettingsStore";
14
15
  import * as $Styles from "./Styles";
15
16
  /**
@@ -84,3 +85,7 @@ export declare const Notifications: typeof $Notifications;
84
85
  * An api allowing you to patch and add/remove items to/from context menus
85
86
  */
86
87
  export declare const ContextMenu: typeof $ContextMenu;
88
+ /**
89
+ * Settings lol
90
+ */
91
+ export declare const Settings: typeof $Settings;
@@ -1,4 +1,4 @@
1
- import { DefinedSettings, SettingsChecks, SettingsDefinition } from "@utils/types";
1
+ import { DefinedSettings, SettingsChecks, SettingsDefinition } from "../utils/types";
2
2
  export interface Settings {
3
3
  notifyAboutUpdates: boolean;
4
4
  autoUpdate: boolean;
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import { React } from "@webpack/common";
2
+ import { React } from "../webpack/common";
3
3
  interface Props<T = any> {
4
4
  /** Render nothing if an error occurs */
5
5
  noop?: boolean;
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
- import { ModalProps } from "@utils/modal";
3
- import { Plugin } from "@utils/types";
2
+ import { ModalProps } from "../../utils/modal";
3
+ import { Plugin } from "../../utils/types";
4
4
  interface PluginModalProps extends ModalProps {
5
5
  plugin: Plugin;
6
6
  onRestartNeeded(): void;
@@ -1,4 +1,4 @@
1
1
  /// <reference types="react" />
2
- import { PluginOptionBoolean } from "@utils/types";
2
+ import { PluginOptionBoolean } from "../../../utils/types";
3
3
  import { ISettingElementProps } from ".";
4
4
  export declare function SettingBooleanComponent({ option, pluginSettings, definedSettings, id, onChange, onError }: ISettingElementProps<PluginOptionBoolean>): JSX.Element;
@@ -1,4 +1,4 @@
1
1
  /// <reference types="react" />
2
- import { PluginOptionComponent } from "@utils/types";
2
+ import { PluginOptionComponent } from "../../../utils/types";
3
3
  import { ISettingElementProps } from ".";
4
4
  export declare function SettingCustomComponent({ option, onChange, onError }: ISettingElementProps<PluginOptionComponent>): JSX.Element;
@@ -1,4 +1,4 @@
1
1
  /// <reference types="react" />
2
- import { PluginOptionNumber } from "@utils/types";
2
+ import { PluginOptionNumber } from "../../../utils/types";
3
3
  import { ISettingElementProps } from ".";
4
4
  export declare function SettingNumericComponent({ option, pluginSettings, definedSettings, id, onChange, onError }: ISettingElementProps<PluginOptionNumber>): JSX.Element;
@@ -1,4 +1,4 @@
1
1
  /// <reference types="react" />
2
- import { PluginOptionSelect } from "@utils/types";
2
+ import { PluginOptionSelect } from "../../../utils/types";
3
3
  import { ISettingElementProps } from ".";
4
4
  export declare function SettingSelectComponent({ option, pluginSettings, definedSettings, onChange, onError, id }: ISettingElementProps<PluginOptionSelect>): JSX.Element;
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import { PluginOptionSlider } from "@utils/types";
2
+ import { PluginOptionSlider } from "../../../utils/types";
3
3
  import { ISettingElementProps } from ".";
4
4
  export declare function makeRange(start: number, end: number, step?: number): number[];
5
5
  export declare function SettingSliderComponent({ option, pluginSettings, definedSettings, id, onChange, onError }: ISettingElementProps<PluginOptionSlider>): JSX.Element;
@@ -1,4 +1,4 @@
1
1
  /// <reference types="react" />
2
- import { PluginOptionString } from "@utils/types";
2
+ import { PluginOptionString } from "../../../utils/types";
3
3
  import { ISettingElementProps } from ".";
4
4
  export declare function SettingTextComponent({ option, pluginSettings, definedSettings, id, onChange, onError }: ISettingElementProps<PluginOptionString>): JSX.Element;
@@ -1,4 +1,4 @@
1
- import { DefinedSettings, PluginOptionBase } from "@utils/types";
1
+ import { DefinedSettings, PluginOptionBase } from "../../../utils/types";
2
2
  export interface ISettingElementProps<T extends PluginOptionBase> {
3
3
  option: T;
4
4
  onChange(newValue: any): void;
package/globals.d.ts ADDED
@@ -0,0 +1,24 @@
1
+ /*
2
+ * Vencord, a modification for Discord's desktop app
3
+ * Copyright (c) 2022 Vendicated and contributors
4
+ *
5
+ * This program is free software: you can redistribute it and/or modify
6
+ * it under the terms of the GNU General Public License as published by
7
+ * the Free Software Foundation, either version 3 of the License, or
8
+ * (at your option) any later version.
9
+ *
10
+ * This program is distributed in the hope that it will be useful,
11
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
12
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
+ * GNU General Public License for more details.
14
+ *
15
+ * You should have received a copy of the GNU General Public License
16
+ * along with this program. If not, see <https://www.gnu.org/licenses/>.
17
+ */
18
+
19
+ declare global {
20
+ export var VencordNative: typeof import("./VencordNative").default;
21
+ export var Vencord: typeof import("./Vencord");
22
+ }
23
+
24
+ export { };
package/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  /* eslint-disable */
2
2
 
3
- /// <reference path="dist/Vencord.d.ts" />
4
- /// <reference path="dist/globals.d.ts" />
5
- /// <reference path="dist/modules.d.ts" />
3
+ /// <reference path="Vencord.d.ts" />
4
+ /// <reference path="globals.d.ts" />
5
+ /// <reference path="modules.d.ts" />
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@vencord/types",
3
3
  "private": false,
4
- "version": "0.1.0",
4
+ "version": "0.1.2",
5
5
  "description": "",
6
6
  "types": "index.d.ts",
7
7
  "scripts": {
@@ -1,4 +1,4 @@
1
- import { OptionType } from "@utils/types";
1
+ import { OptionType } from "../utils/types";
2
2
  declare enum Methods {
3
3
  Random = 0,
4
4
  Consistent = 1,
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import { BadgePosition, BadgeUserArgs, ProfileBadge } from "@api/Badges";
2
+ import { BadgePosition, BadgeUserArgs, ProfileBadge } from "../api/Badges";
3
3
  declare const _default: {
4
4
  name: string;
5
5
  description: string;
@@ -1,4 +1,4 @@
1
- import { OptionType } from "@utils/types";
1
+ import { OptionType } from "../utils/types";
2
2
  declare const _default: {
3
3
  name: string;
4
4
  description: string;
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import "./betterFolders.css";
3
- import { OptionType } from "@utils/types";
3
+ import { OptionType } from "../../utils/types";
4
4
  declare const _default: {
5
5
  name: string;
6
6
  description: string;
@@ -30,7 +30,7 @@ declare const _default: {
30
30
  replace: string;
31
31
  };
32
32
  })[];
33
- settings: import("@utils/types").DefinedSettings<{
33
+ settings: import("../../utils/types").DefinedSettings<{
34
34
  sidebar: {
35
35
  type: OptionType.BOOLEAN;
36
36
  description: string;
@@ -1,4 +1,4 @@
1
- import { OptionType } from "@utils/types";
1
+ import { OptionType } from "../utils/types";
2
2
  declare const _default: {
3
3
  name: string;
4
4
  description: string;
@@ -1,4 +1,4 @@
1
- import { OptionType } from "@utils/types";
1
+ import { OptionType } from "../utils/types";
2
2
  declare const _default: {
3
3
  name: string;
4
4
  authors: {
@@ -1,4 +1,4 @@
1
- import { OptionType } from "@utils/types";
1
+ import { OptionType } from "../utils/types";
2
2
  declare function setCss(): void;
3
3
  declare const _default: {
4
4
  name: string;
@@ -1,6 +1,6 @@
1
1
  /// <reference types="node" />
2
2
  /// <reference types="react" />
3
- import { OptionType } from "@utils/types";
3
+ import { OptionType } from "../utils/types";
4
4
  declare const _default: {
5
5
  name: string;
6
6
  description: string;
@@ -1,4 +1,4 @@
1
- import { MessageObject } from "@api/MessageEvents";
1
+ import { MessageObject } from "../../api/MessageEvents";
2
2
  declare const _default: {
3
3
  name: string;
4
4
  description: string;
@@ -1,6 +1,6 @@
1
- import { relaunch } from "@utils/native";
2
- import { canonicalizeMatch, canonicalizeReplace, canonicalizeReplacement } from "@utils/patches";
3
- import * as Webpack from "@webpack";
1
+ import { relaunch } from "../utils/native";
2
+ import { canonicalizeMatch, canonicalizeReplace, canonicalizeReplacement } from "../utils/patches";
3
+ import * as Webpack from "../webpack/webpack";
4
4
  import type { ComponentType } from "react";
5
5
  declare const _default: {
6
6
  name: string;
@@ -30,7 +30,7 @@ declare const _default: {
30
30
  findAllByCode: (code: string) => any[];
31
31
  findStore: (...filterProps: unknown[]) => any;
32
32
  PluginsApi: typeof import(".");
33
- plugins: Record<string, import("@utils/types").Plugin>;
33
+ plugins: Record<string, import("../utils/types").Plugin>;
34
34
  React: typeof import("react");
35
35
  Settings: import("../Vencord").Settings;
36
36
  Api: typeof import("../api");
@@ -1,4 +1,4 @@
1
- import { OptionType } from "@utils/types";
1
+ import { OptionType } from "../utils/types";
2
2
  import type { ReactElement } from "react";
3
3
  declare const _default: {
4
4
  name: string;
@@ -9,7 +9,7 @@ declare const _default: {
9
9
  }[];
10
10
  enabledByDefault: true;
11
11
  popAllModals: (() => void) | undefined;
12
- settings: import("@utils/types").DefinedSettings<{
12
+ settings: import("../utils/types").DefinedSettings<{
13
13
  attemptToPreventCrashes: {
14
14
  type: OptionType.BOOLEAN;
15
15
  description: string;
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import { OptionType } from "@utils/types";
2
+ import { OptionType } from "../utils/types";
3
3
  declare function setRpc(disable?: boolean): Promise<void>;
4
4
  declare const _default_1: {
5
5
  name: string;
@@ -10,7 +10,7 @@ declare const _default_1: {
10
10
  }[];
11
11
  start: typeof setRpc;
12
12
  stop: () => Promise<void>;
13
- settings: import("@utils/types").DefinedSettings<{
13
+ settings: import("../utils/types").DefinedSettings<{
14
14
  appID: {
15
15
  readonly type: OptionType.STRING;
16
16
  readonly description: string;
@@ -1,4 +1,4 @@
1
- import { OptionType } from "@utils/types";
1
+ import { OptionType } from "../utils/types";
2
2
  declare const _default: {
3
3
  name: string;
4
4
  description: string;
@@ -6,7 +6,7 @@ declare const _default: {
6
6
  name: string;
7
7
  id: bigint;
8
8
  }[];
9
- settings: import("@utils/types").DefinedSettings<{
9
+ settings: import("../utils/types").DefinedSettings<{
10
10
  notifyOnAutoConnect: {
11
11
  description: string;
12
12
  type: OptionType.BOOLEAN;
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import { OptionType } from "@utils/types";
2
+ import { OptionType } from "../utils/types";
3
3
  declare const _default: {
4
4
  name: string;
5
5
  description: string;
@@ -7,7 +7,7 @@ declare const _default: {
7
7
  name: string;
8
8
  id: bigint;
9
9
  }[];
10
- settings: import("@utils/types").DefinedSettings<{
10
+ settings: import("../utils/types").DefinedSettings<{
11
11
  enableIsStaff: {
12
12
  description: string;
13
13
  type: OptionType.BOOLEAN;
@@ -1,4 +1,4 @@
1
- import { OptionType } from "@utils/types";
1
+ import { OptionType } from "../utils/types";
2
2
  import type { Message } from "discord-types/general";
3
3
  import type { ReactNode } from "react";
4
4
  declare const _default: {
@@ -9,7 +9,7 @@ declare const _default: {
9
9
  }[];
10
10
  description: string;
11
11
  dependencies: string[];
12
- settings: import("@utils/types").DefinedSettings<{
12
+ settings: import("../utils/types").DefinedSettings<{
13
13
  enableEmojiBypass: {
14
14
  description: string;
15
15
  type: OptionType.BOOLEAN;
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import { OptionType } from "@utils/types";
2
+ import { OptionType } from "../utils/types";
3
3
  import { User } from "discord-types/general";
4
4
  interface UserProfile extends User {
5
5
  themeColors?: Array<number>;
@@ -23,7 +23,7 @@ declare const _default: {
23
23
  };
24
24
  }[];
25
25
  settingsAboutComponent: () => JSX.Element;
26
- settings: import("@utils/types").DefinedSettings<{
26
+ settings: import("../utils/types").DefinedSettings<{
27
27
  nitroFirst: {
28
28
  description: string;
29
29
  type: OptionType.SELECT;
@@ -1,5 +1,5 @@
1
- import { ApplicationCommandOptionType } from "@api/Commands";
2
- import { OptionType } from "@utils/types";
1
+ import { ApplicationCommandOptionType } from "../api/Commands";
2
+ import { OptionType } from "../utils/types";
3
3
  declare const _default: {
4
4
  name: string;
5
5
  authors: {
@@ -17,7 +17,7 @@ declare const _default: {
17
17
  description: string;
18
18
  required: false;
19
19
  }[];
20
- execute(args: import("@api/Commands").Argument[]): {
20
+ execute(args: import("../api/Commands").Argument[]): {
21
21
  content: string;
22
22
  };
23
23
  }[];
@@ -1,4 +1,4 @@
1
- import { ApplicationCommandInputType } from "@api/Commands";
1
+ import { ApplicationCommandInputType } from "../api/Commands";
2
2
  declare const _default: {
3
3
  name: string;
4
4
  description: string;
@@ -11,12 +11,12 @@ declare const _default: {
11
11
  name: string;
12
12
  description: string;
13
13
  inputType: ApplicationCommandInputType.BOT;
14
- execute: (_: import("@api/Commands").Argument[], ctx: import("@api/Commands").CommandContext) => Promise<import("discord-types/general").Message | undefined>;
14
+ execute: (_: import("../api/Commands").Argument[], ctx: import("../api/Commands").CommandContext) => Promise<import("discord-types/general").Message | undefined>;
15
15
  } | {
16
16
  name: string;
17
17
  description: string;
18
18
  inputType: ApplicationCommandInputType.BOT;
19
- execute: (_: import("@api/Commands").Argument[], ctx: import("@api/Commands").CommandContext) => Promise<void>;
19
+ execute: (_: import("../api/Commands").Argument[], ctx: import("../api/Commands").CommandContext) => Promise<void>;
20
20
  })[];
21
21
  } & Record<string, any>;
22
22
  export default _default;
@@ -1,4 +1,4 @@
1
- import { MessageObject } from "@api/MessageEvents";
1
+ import { MessageObject } from "../api/MessageEvents";
2
2
  declare const _default: {
3
3
  name: string;
4
4
  description: string;
@@ -1,9 +1,9 @@
1
1
  /// <reference types="react" />
2
- import { OptionType } from "@utils/types";
3
- import { React } from "@webpack/common";
2
+ import { OptionType } from "../../utils/types";
3
+ import { React } from "../../webpack/common";
4
4
  import type { Root } from "react-dom/client";
5
5
  import { MagnifierProps } from "./components/Magnifier";
6
- export declare const settings: import("@utils/types").DefinedSettings<{
6
+ export declare const settings: import("../../utils/types").DefinedSettings<{
7
7
  saveZoomValues: {
8
8
  type: OptionType.BOOLEAN;
9
9
  description: string;
@@ -61,7 +61,7 @@ declare const _default: {
61
61
  replace: string;
62
62
  }[];
63
63
  })[];
64
- settings: import("@utils/types").DefinedSettings<{
64
+ settings: import("../../utils/types").DefinedSettings<{
65
65
  saveZoomValues: {
66
66
  type: OptionType.BOOLEAN;
67
67
  description: string;
@@ -1,5 +1,5 @@
1
- import Logger from "@utils/Logger";
2
- import { Patch, Plugin } from "@utils/types";
1
+ import Logger from "../utils/Logger";
2
+ import { Patch, Plugin } from "../utils/types";
3
3
  export declare const PMLogger: Logger;
4
4
  export declare const plugins: Record<string, Plugin>;
5
5
  export declare const patches: Patch[];
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import { OptionType } from "@utils/types";
2
+ import { OptionType } from "../../utils/types";
3
3
  import { Message } from "discord-types/general";
4
4
  declare const _default: {
5
5
  name: string;
@@ -19,7 +19,7 @@ declare const _default: {
19
19
  EMBED_API_URL: string;
20
20
  INV_REGEX: RegExp;
21
21
  URL_REGEX: RegExp;
22
- settings: import("@utils/types").DefinedSettings<{
22
+ settings: import("../../utils/types").DefinedSettings<{
23
23
  savedPasswords: {
24
24
  type: OptionType.STRING;
25
25
  default: string;
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import { OptionType } from "@utils/types";
2
+ import { OptionType } from "../utils/types";
3
3
  interface ActivityAssets {
4
4
  large_image?: string;
5
5
  large_text?: string;
@@ -37,7 +37,7 @@ declare const _default: {
37
37
  id: bigint;
38
38
  }[];
39
39
  settingsAboutComponent: () => JSX.Element;
40
- settings: import("@utils/types").DefinedSettings<{
40
+ settings: import("../utils/types").DefinedSettings<{
41
41
  username: {
42
42
  description: string;
43
43
  type: OptionType.STRING;
@@ -1,4 +1,4 @@
1
- import { OptionType } from "@utils/types";
1
+ import { OptionType } from "../utils/types";
2
2
  declare const _default: {
3
3
  name: string;
4
4
  description: string;
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import { OptionType } from "@utils/types";
2
+ import { OptionType } from "../utils/types";
3
3
  declare const _default: {
4
4
  name: string;
5
5
  description: string;
@@ -16,7 +16,7 @@ declare const _default: {
16
16
  }[];
17
17
  }[];
18
18
  AutoModEmbed: any;
19
- settings: import("@utils/types").DefinedSettings<{
19
+ settings: import("../utils/types").DefinedSettings<{
20
20
  messageBackgroundColor: {
21
21
  description: string;
22
22
  type: OptionType.BOOLEAN;
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import "./messageLogger.css";
3
- import { OptionType } from "@utils/types";
3
+ import { OptionType } from "../../utils/types";
4
4
  declare const _default: {
5
5
  name: string;
6
6
  description: string;
@@ -1,5 +1,5 @@
1
- import { ApplicationCommandInputType, ApplicationCommandOptionType } from "@api/Commands";
2
- import { OptionType } from "@utils/types";
1
+ import { ApplicationCommandInputType, ApplicationCommandOptionType } from "../api/Commands";
2
+ import { OptionType } from "../utils/types";
3
3
  declare const _default: {
4
4
  name: string;
5
5
  description: string;
@@ -32,7 +32,7 @@ declare const _default: {
32
32
  required: true;
33
33
  }[];
34
34
  }[];
35
- execute(args: import("@api/Commands").Argument[], ctx: import("@api/Commands").CommandContext): Promise<import("discord-types/general").Message | undefined>;
35
+ execute(args: import("../api/Commands").Argument[], ctx: import("../api/Commands").CommandContext): Promise<import("discord-types/general").Message | undefined>;
36
36
  }[];
37
37
  } & Record<string, any>;
38
38
  export default _default;
@@ -1,4 +1,4 @@
1
- import { ApplicationCommandInputType } from "@api/Commands";
1
+ import { ApplicationCommandInputType } from "../api/Commands";
2
2
  declare const _default: {
3
3
  name: string;
4
4
  description: string;
@@ -10,14 +10,14 @@ declare const _default: {
10
10
  commands: ({
11
11
  name: string;
12
12
  description: string;
13
- options: import("@api/Commands").Option[];
13
+ options: import("../api/Commands").Option[];
14
14
  inputType: ApplicationCommandInputType.BOT;
15
- execute: (opts: import("@api/Commands").Argument[], ctx: import("@api/Commands").CommandContext) => void;
15
+ execute: (opts: import("../api/Commands").Argument[], ctx: import("../api/Commands").CommandContext) => void;
16
16
  } | {
17
17
  name: string;
18
18
  description: string;
19
- options: import("@api/Commands").Option[];
20
- execute: (opts: import("@api/Commands").Argument[]) => {
19
+ options: import("../api/Commands").Option[];
20
+ execute: (opts: import("../api/Commands").Argument[]) => {
21
21
  content: string;
22
22
  };
23
23
  inputType?: undefined;
@@ -7,8 +7,8 @@ declare const _default: {
7
7
  }[];
8
8
  dependencies: string[];
9
9
  commands: {
10
- options: import("@api/Commands").Option[];
11
- execute: (opts: import("@api/Commands").Argument[]) => {
10
+ options: import("../api/Commands").Option[];
11
+ execute: (opts: import("../api/Commands").Argument[]) => {
12
12
  content: string;
13
13
  };
14
14
  name: string;
@@ -1,4 +1,4 @@
1
- import { OptionType } from "@utils/types";
1
+ import { OptionType } from "../utils/types";
2
2
  import { Channel, Message, User } from "discord-types/general";
3
3
  declare const _default: {
4
4
  name: string;
@@ -7,7 +7,7 @@ declare const _default: {
7
7
  name: string;
8
8
  id: bigint;
9
9
  }[];
10
- settings: import("@utils/types").DefinedSettings<{
10
+ settings: import("../utils/types").DefinedSettings<{
11
11
  dontShowForBots: {
12
12
  description: string;
13
13
  type: OptionType.BOOLEAN;
@@ -1,4 +1,4 @@
1
- import { OptionType } from "@utils/types";
1
+ import { OptionType } from "../utils/types";
2
2
  import { Message, ReactionEmoji } from "discord-types/general";
3
3
  interface IMessageCreate {
4
4
  type: "MESSAGE_CREATE";
@@ -30,7 +30,7 @@ declare const _default: {
30
30
  id: bigint;
31
31
  }[];
32
32
  description: string;
33
- settings: import("@utils/types").DefinedSettings<{
33
+ settings: import("../utils/types").DefinedSettings<{
34
34
  volume: {
35
35
  description: string;
36
36
  type: OptionType.SLIDER;
@@ -1,4 +1,4 @@
1
- import { OptionType } from "@utils/types";
1
+ import { OptionType } from "../utils/types";
2
2
  declare const _default: {
3
3
  name: string;
4
4
  description: string;
@@ -1,5 +1,5 @@
1
- import { MessageObject } from "@api/MessageEvents";
2
- import { OptionType } from "@utils/types";
1
+ import { MessageObject } from "../api/MessageEvents";
2
+ import { OptionType } from "../utils/types";
3
3
  declare const _default: {
4
4
  name: string;
5
5
  description: string;
@@ -1,4 +1,4 @@
1
- import { OptionType } from "@utils/types";
1
+ import { OptionType } from "../utils/types";
2
2
  import type { Message } from "discord-types/general";
3
3
  declare const _default: {
4
4
  name: string;
@@ -7,7 +7,7 @@ declare const _default: {
7
7
  name: string;
8
8
  id: bigint;
9
9
  }[];
10
- settings: import("@utils/types").DefinedSettings<{
10
+ settings: import("../utils/types").DefinedSettings<{
11
11
  exemptList: {
12
12
  description: string;
13
13
  type: OptionType.STRING;
@@ -1,4 +1,4 @@
1
- import { ApplicationCommandInputType, ApplicationCommandOptionType, Argument, CommandContext } from "@api/Commands";
1
+ import { ApplicationCommandInputType, ApplicationCommandOptionType, Argument, CommandContext } from "../api/Commands";
2
2
  declare const _default: {
3
3
  name: string;
4
4
  description: string;
@@ -8,9 +8,9 @@ declare const _default: {
8
8
  name: string;
9
9
  id: bigint;
10
10
  }[];
11
- settings: import("@utils/types").DefinedSettings<{
11
+ settings: import("../../utils/types").DefinedSettings<{
12
12
  pinOrder: {
13
- type: import("@utils/types").OptionType.SELECT;
13
+ type: import("../../utils/types").OptionType.SELECT;
14
14
  description: string;
15
15
  options: ({
16
16
  label: string;