@elysiajs/eden
Advanced tools
Comparing version 1.1.0-rc.0 to 1.1.0-rc.1
@@ -59,5 +59,5 @@ import { InputSchema, Elysia } from 'elysia'; | ||
type CreateParams<Route extends Record<string, any>> = Extract<keyof Route, `:${string}`> extends infer Path extends string ? IsNever<Path> extends true ? Prettify<Sign<Route>> : // ! DO NOT USE PRETTIFY ON THIS LINE, OTHERWISE FUNCTION CALLING WILL BE OMITTED | ||
((params: { | ||
[param in Path extends `:${infer Param}` ? Param : never]: string | number; | ||
}) => Prettify<Sign<Route[Path]>> & CreateParams<Route[Path]>) & Prettify<Sign<Route>> : never; | ||
(((params: { | ||
[param in Path extends `:${infer Param}` ? Param extends `${infer Param}?` ? Param : Param : never]: string | number; | ||
}) => Prettify<Sign<Route[Path]>> & CreateParams<Route[Path]>) & Prettify<Sign<Route>>) & (Path extends `:${string}?` ? CreateParams<Route[Path]> : {}) : never; | ||
export interface Config { | ||
@@ -64,0 +64,0 @@ fetch?: Omit<RequestInit, 'headers' | 'method'>; |
@@ -46,5 +46,5 @@ import type { Elysia } from 'elysia'; | ||
type CreateParams<Route extends Record<string, any>> = Extract<keyof Route, `:${string}`> extends infer Path extends string ? IsNever<Path> extends true ? Prettify<Sign<Route>> : // ! DO NOT USE PRETTIFY ON THIS LINE, OTHERWISE FUNCTION CALLING WILL BE OMITTED | ||
((params: { | ||
[param in Path extends `:${infer Param}` ? Param : never]: string | number; | ||
}) => Prettify<Sign<Route[Path]>> & CreateParams<Route[Path]>) & Prettify<Sign<Route>> : never; | ||
(((params: { | ||
[param in Path extends `:${infer Param}` ? Param extends `${infer Param}?` ? Param : Param : never]: string | number; | ||
}) => Prettify<Sign<Route[Path]>> & CreateParams<Route[Path]>) & Prettify<Sign<Route>>) & (Path extends `:${string}?` ? CreateParams<Route[Path]> : {}) : never; | ||
export interface Config { | ||
@@ -51,0 +51,0 @@ fetch?: Omit<RequestInit, 'headers' | 'method'>; |
{ | ||
"name": "@elysiajs/eden", | ||
"version": "1.1.0-rc.0", | ||
"version": "1.1.0-rc.1", | ||
"description": "Fully type-safe Elysia client", | ||
@@ -70,3 +70,3 @@ "author": { | ||
"@types/node": "^18.15.5", | ||
"elysia": "^1.1.0-rc.3", | ||
"elysia": "^1.1.0-rc.9", | ||
"esbuild": "^0.19.3", | ||
@@ -73,0 +73,0 @@ "eslint": "^8.26.0", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
111662