Comparing version 1.10.0 to 1.11.0
@@ -83,2 +83,3 @@ import type { Prettify } from './types'; | ||
DeepPrettify, | ||
ExtractRouteParams, | ||
} from './types'; | ||
@@ -85,0 +86,0 @@ export declare const noop: () => void; |
@@ -33,1 +33,14 @@ import { phones } from './phoneRegExp'; | ||
| Float64Array; | ||
export type ExtractRouteParams<S extends string> = string extends S | ||
? Record<string, string> | ||
: S extends `${infer P}?${infer _Q}` | ||
? ExtractRouteParams<P> | ||
: S extends `${infer _S}:${infer P}/${infer Rest}` | ||
? { | ||
[K in P | keyof ExtractRouteParams<Rest>]: string; | ||
} | ||
: S extends `${infer _Start}:${infer P}` | ||
? { | ||
[K in P]: string; | ||
} | ||
: {}; |
{ | ||
"name": "aidly", | ||
"version": "1.10.0", | ||
"version": "1.11.0", | ||
"description": "Tool library.", | ||
@@ -5,0 +5,0 @@ "sideEffects": false, |
276528
8925