@vercel/routing-utils
Advanced tools
+2
-2
@@ -1,2 +0,2 @@ | ||
| import { GetRoutesProps, NormalizedRoutes, Route, RouteWithHandle } from './types'; | ||
| import { GetRoutesProps, NormalizedRoutes, Route, RouteInput, RouteWithHandle } from './types'; | ||
| export { appendRoutesToPhase } from './append'; | ||
@@ -12,3 +12,3 @@ export { mergeRoutes } from './merge'; | ||
| export declare function isValidHandleValue(handle: string): handle is HandleValue; | ||
| export declare function normalizeRoutes(inputRoutes: Route[] | null): NormalizedRoutes; | ||
| export declare function normalizeRoutes(inputRoutes: RouteInput[] | null): NormalizedRoutes; | ||
| export declare function getTransformedRoutes(vercelConfig: GetRoutesProps): NormalizedRoutes; |
+5
-1
@@ -110,2 +110,6 @@ import { HandleValue } from './index'; | ||
| export type Route = RouteWithSrc | RouteWithHandle; | ||
| export type RouteInput = RouteWithSrc | (Omit<RouteWithSrc, 'src'> & { | ||
| src?: undefined; | ||
| source: string; | ||
| }) | RouteWithHandle; | ||
| export type NormalizedRoutes = { | ||
@@ -116,3 +120,3 @@ routes: Route[] | null; | ||
| export interface GetRoutesProps { | ||
| routes?: Route[]; | ||
| routes?: RouteInput[]; | ||
| cleanUrls?: boolean; | ||
@@ -119,0 +123,0 @@ rewrites?: Rewrite[]; |
+1
-1
| { | ||
| "name": "@vercel/routing-utils", | ||
| "version": "6.0.0", | ||
| "version": "6.0.1", | ||
| "description": "Vercel routing utilities", | ||
@@ -5,0 +5,0 @@ "main": "./dist/index.js", |
218951
0.07%4668
0.09%