refactor(code): RoutingRoute => RoutingItem
MODIFY
packages/core/src/router/router.interface.ts
packages/core/src/router/router.interface.ts
@@ -25,7 +25,7 @@ export interface ParametricRegExp {
parameters: string[];
}
-export interface RoutingRoute extends ParametricRegExp {
+export interface RoutingItem extends ParametricRegExp {
method: HttpMethod;
middleware?: Middleware | undefined;
effect: Effect;
@@ -37,4 +37,4 @@ export interface RouteMatched {
params: Record<string, string>;
}
-export type Routing = RoutingRoute[];
+export type Routing = RoutingItem[];

MODIFY
packages/core/src/router/router.ts
packages/core/src/router/router.ts
@@ -9,7 +9,7 @@ import {
RouteGroup,
RouteMatched,
Routing,
- RoutingRoute
+ RoutingItem
} from './router.interface';
import { queryParamsFactory } from '../router/queryParams.factory';
import { combineMiddlewareEffects } from '../effects/effects.combiner';
@@ -44,7 +44,7 @@ export const routingFactory = (
? middleware.length > 1 ? combineMiddlewareEffects(middleware) : middleware[0]
: null,
effect: route.effect
- } as RoutingRoute);
+ } as RoutingItem);
}
});
return routing;

refactor(code): RoutingRoute => RoutingItem