@elysiajs/eden 0.3.0 → 0.3.1
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/dist/treaty/types.d.ts +1 -1
- package/package.json +1 -1
- package/src/treaty/types.ts +2 -2
package/dist/treaty/types.d.ts
CHANGED
|
@@ -77,5 +77,5 @@ export declare namespace EdenTreaty {
|
|
|
77
77
|
$query?: Record<string, string>;
|
|
78
78
|
}
|
|
79
79
|
}
|
|
80
|
-
type NestPath<T extends string, V> = T extends `${infer First}/${infer Rest}` ? First extends `:${infer Parameter}` ? Record<string | number | `:${Parameter}`, NestPath<Rest, V>> : Record<First, NestPath<Rest, V>> : T extends `:${infer Parameter}` ? Record<string | number | T, V> : Record<T, V>;
|
|
80
|
+
type NestPath<T extends string, V> = T extends `${infer First}/${infer Rest}` ? First extends `:${infer Parameter}` ? Record<(string & {}) | number | `:${Parameter}`, NestPath<Rest, V>> : Record<First, NestPath<Rest, V>> : T extends `:${infer Parameter}` ? Record<(string & {}) | number | T, V> : Record<T, V>;
|
|
81
81
|
export {};
|
package/package.json
CHANGED
package/src/treaty/types.ts
CHANGED
|
@@ -188,8 +188,8 @@ export namespace EdenTreaty {
|
|
|
188
188
|
|
|
189
189
|
type NestPath<T extends string, V> = T extends `${infer First}/${infer Rest}`
|
|
190
190
|
? First extends `:${infer Parameter}`
|
|
191
|
-
? Record<string | number | `:${Parameter}`, NestPath<Rest, V>>
|
|
191
|
+
? Record<(string & {}) | number | `:${Parameter}`, NestPath<Rest, V>>
|
|
192
192
|
: Record<First, NestPath<Rest, V>>
|
|
193
193
|
: T extends `:${infer Parameter}`
|
|
194
|
-
? Record<string | number | T, V>
|
|
194
|
+
? Record<(string & {}) | number | T, V>
|
|
195
195
|
: Record<T, V>
|