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.
- package/index.d.ts +2 -1
- 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:
|
|
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