@armscye/hooks 0.2.4 → 0.4.0

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.
@@ -0,0 +1,2 @@
1
+ import { Type } from '@armscye/core';
2
+ export type HookProvider<T = any> = string | symbol | object | Type<T> | Function;
package/dist/index.d.ts CHANGED
@@ -1,3 +1,3 @@
1
- export * from './hook.interface';
1
+ export * from './hook-provider.interface';
2
2
  export * from './shutdown-hook.interface';
3
3
  export * from './startup-hook.interface';
@@ -5,11 +5,13 @@
5
5
  export interface ShutdownHook {
6
6
  /**
7
7
  * Called before connections close.
8
+ *
8
9
  * @param signal the system signal
9
10
  */
10
11
  beforeShutdown(signal?: string): any;
11
12
  /**
12
13
  * Called after connections close.
14
+ *
13
15
  * @param signal the system signal
14
16
  */
15
17
  onShutdown(signal?: string): any;
@@ -3,7 +3,7 @@
3
3
  */
4
4
  export interface StartupHook {
5
5
  /**
6
- * Called before listening for connections.
6
+ * Called before listening for connections.
7
7
  */
8
8
  onStartup(): any;
9
9
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@armscye/hooks",
3
- "version": "0.2.4",
3
+ "version": "0.4.0",
4
4
  "description": "A collection of shared standard TypeScript definitions",
5
5
  "author": "Augustus Kamau",
6
6
  "license": "MIT",
@@ -27,5 +27,5 @@
27
27
  "publishConfig": {
28
28
  "access": "public"
29
29
  },
30
- "gitHead": "e59ffb38f9848a42ab9a5c8666f51b5041f42505"
30
+ "gitHead": "3f346ded1e7a06cf1afac1ba29a6e4f5377d4664"
31
31
  }
@@ -1,2 +0,0 @@
1
- import { Type } from '@armscye/core';
2
- export type Hook<T = any> = string | symbol | object | Type<T> | Function;