remove api index and api imports

pull/98/head
dperolio 2 years ago
parent fa54f572be
commit 5f0b43832c
No known key found for this signature in database
GPG Key ID: 4191689562D51409

@ -11,7 +11,6 @@
"@vizality/builtins": [ "./src/builtins" ],
"@vizality/modules": [ "./src/modules" ],
"@vizality/typedefs": [ "./src/Typedefs" ],
"@vizality/api": [ "./src/api" ],
"@discord/*": [ "./src/modules/discord/*" ],
"moment": [ "./src/modules/packages/Moment" ],
"react": [ "./src/modules/packages/React" ],

@ -46,11 +46,9 @@
"@vizality/http": "renderer/src/modules/http",
"@vizality/i18n": "renderer/src/modules/i18n",
"@vizality/modules": "renderer/src/modules",
"@vizality/api": "renderer/src/api",
"@vizality": "renderer/src/modules",
"@vizality/src": "renderer",
"@vizality/root": ".",
"@vizality/api/settings": "renderer/src/api/Settings/Alias",
"@vizality/util/performance": "renderer/src/modules/util/Performance",
"@vizality/util/security": "renderer/src/modules/util/Security",
"@vizality/util/logger": "renderer/src/modules/util/Logger",

@ -1,23 +0,0 @@
/**
* This gets the APIs from the vizality global and then exports them here so that they
* may be used by plugin developers in other forms if they wish, such as:
* @example
* ```
* import { Keybinds } from '@vizality/api';
* ```
*/
const { connections, settings, commands, keybinds, actions, notifications, popups, routes, i18n, rpc } = vizality.api;
export {
connections as Connections,
settings as Settings,
commands as Commands,
keybinds as Ketbinds,
actions as Actions,
notifications as Notifications,
popups as Popups,
routes as Routes,
i18n as I18n,
rpc as RPC
};
Loading…
Cancel
Save