yinzerflow 0.2.9 → 0.2.10

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 +2 -1
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -585,6 +585,7 @@ export interface InternalServerConfiguration {
585
585
  */
586
586
  autoGracefulShutdown: boolean;
587
587
  }
588
+ export type RouteGroup = Record<Lowercase<InternalHttpMethod>, InternalSetupMethod>;
588
589
  export interface Setup {
589
590
  get: InternalSetupMethod;
590
591
  post: InternalSetupMethod;
@@ -592,7 +593,7 @@ export interface Setup {
592
593
  patch: InternalSetupMethod;
593
594
  delete: InternalSetupMethod;
594
595
  options: InternalSetupMethod;
595
- group: (prefix: string, callback: (group: Record<Lowercase<InternalHttpMethod>, InternalSetupMethod>) => void, options?: InternalRouteRegistryOptions) => void;
596
+ group: (prefix: string, callback: (group: RouteGroup) => void, options?: InternalRouteRegistryOptions) => void;
596
597
  beforeAll: (handlers: Array<HandlerCallback>, options?: InternalGlobalHookOptions) => void;
597
598
  afterAll: (handlers: Array<HandlerCallback>, options?: InternalGlobalHookOptions) => void;
598
599
  onError: (handler: HandlerCallback) => void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "yinzerflow",
3
- "version": "0.2.9",
3
+ "version": "0.2.10",
4
4
  "author": "Patrick Rizzardi <patrick@redact.digital> (https://redact.digital)",
5
5
  "license": "MIT",
6
6
  "homepage": "https://github.com/yinzers/YinzerFlow/blob/main/docs/start-here.md",