lotus-tree-types 2.0.3 → 2.0.4

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 (2) hide show
  1. package/index.d.ts +3 -5
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -1,16 +1,14 @@
1
1
  import { Client, Events, GatewayIntentBits, Partials } from 'discord.js';
2
2
  import { type Options, Sequelize } from 'sequelize';
3
- export interface Config {
4
- guild: Record<string, any>;
5
- global: Record<string, any>;
6
- }
3
+ export type Config = Record<'guild' | 'global', Record<string, any>>;
7
4
  export type LocalConfig = Record<string, Record<string, any>>;
8
5
  export type EventFunction = (globals: Globals, ...args: any[]) => void;
6
+ export type LotusEvents = Record<Events, EventFunction>;
9
7
  export interface Package {
10
8
  name: string;
11
9
  intents?: GatewayIntentBits[];
12
10
  partials?: Partials[];
13
- events?: Record<Events, EventFunction>;
11
+ events?: LotusEvents;
14
12
  commands?: Record<string, any>;
15
13
  config?: Config;
16
14
  localConfig?: LocalConfig;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lotus-tree-types",
3
- "version": "2.0.3",
3
+ "version": "2.0.4",
4
4
  "homepage": "https://github.com/jorgev259/Lotus-Tree#readme",
5
5
  "bugs": {
6
6
  "url": "https://github.com/jorgev259/Lotus-Tree/issues"