sugar-djs 0.4.1 → 0.4.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.
package/dist/wrapper.d.ts CHANGED
@@ -118,12 +118,12 @@ interface ComponentProcessRegister<TParms extends ComponentBuilderParms> {
118
118
  };
119
119
  _interaction: TParms['_interaction'];
120
120
  }>;
121
- addMiddleware<T extends TParms['_processInputData']>(fc: (input: TParms['_processInputData']) => T | Promise<T>): ComponentProcessRegister<{
121
+ addMiddleware<T extends TParms['_processInputData']>(fc: (input: TParms['_processInputData']) => MaybePromise<T | undefined>): ComponentProcessRegister<{
122
122
  _schema: TParms['_schema'];
123
123
  _builder: TParms['_builder'];
124
124
  _componentType: TParms['_componentType'];
125
125
  _args: TParms['_args'];
126
- _processInputData: Awaited<T>;
126
+ _processInputData: Exclude<Awaited<T>, undefined>;
127
127
  _interaction: Awaited<T['interaction']>;
128
128
  }>;
129
129
  setProcess(process: (input: TParms['_processInputData']) => void): ComponentData<{
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sugar-djs",
3
- "version": "0.4.1",
3
+ "version": "0.4.2",
4
4
  "description": "Library for writing discord.js in TypeScript for more fun!",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",