@xpr/nestjs-slack 0.0.1 → 0.0.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/decorators.d.ts CHANGED
@@ -5,6 +5,12 @@ export type ActionId = Pattern | ActionConstraints;
5
5
  export type ViewId = Pattern | ViewConstraints;
6
6
  export type OptionId = OptionsConstraints;
7
7
  export type AllConstraints = Pattern | ActionConstraints | ShortcutConstraints | ViewConstraints | OptionsConstraints;
8
+ /**
9
+ * Create method decorator
10
+ * @param type type of listener
11
+ * @param event how to identify the event
12
+ */
13
+ export declare function eventDecorator<T extends AllConstraints>(type: string, event: T): MethodDecorator;
8
14
  /**
9
15
  * @see https://tools.slack.dev/bolt-js/reference/
10
16
  */
package/decorators.js CHANGED
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.EventTypes = void 0;
4
+ exports.eventDecorator = eventDecorator;
4
5
  exports.SlackEvent = SlackEvent;
5
6
  exports.SlackShortcut = SlackShortcut;
6
7
  exports.SlackCommand = SlackCommand;
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "@xpr/nestjs-slack",
3
- "version": "0.0.1",
3
+ "version": "0.0.2",
4
4
  "description": "NestJS server implementation of the Slack Assistant",
5
5
  "main": "index.js",
6
6
  "scripts": {
7
- "build": "tsc -p tsconfig.json && cp package.json ../../dist/nestjs-slack/. && cp readme.md ../../dist/nestjs-slack/."
7
+ "build": "tsc -p tsconfig-lib.json && cp package.json ../../dist/nestjs-slack/. && cp readme.md ../../dist/nestjs-slack/."
8
8
  },
9
9
  "author": "Ziv Perry",
10
10
  "license": "MIT",