@armscye/hooks 0.4.1 → 0.5.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.
package/dist/index.d.ts CHANGED
@@ -1,3 +1,3 @@
1
- export * from './hook-provider.interface';
2
- export * from './shutdown-hook.interface';
3
- export * from './startup-hook.interface';
1
+ export * from './hook-provider';
2
+ export * from './shutdown-hook';
3
+ export * from './startup-hook';
@@ -3,12 +3,6 @@
3
3
  * shutdown by, e.g., SIGTERM)
4
4
  */
5
5
  export interface ShutdownHook {
6
- /**
7
- * Called before connections close.
8
- *
9
- * @param signal the system signal
10
- */
11
- beforeShutdown(signal?: string): any;
12
6
  /**
13
7
  * Called after connections close.
14
8
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@armscye/hooks",
3
- "version": "0.4.1",
3
+ "version": "0.5.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": "f2c94ab8ecb4161f6f8c82820a8bbad758d83209"
30
+ "gitHead": "1cc4d3acff67f6754d443396835d2523284bdc3b"
31
31
  }
@@ -1,2 +0,0 @@
1
- import { Type } from '@armscye/core';
2
- export type Hook<T = any> = string | symbol | object | Type<T> | Function;