@elysiajs/eden
Advanced tools
Comparing version 1.1.0 to 1.1.1
import { Elysia } from 'elysia'; | ||
import { T as TreatyToPath, a as IsNever, I as IsUnknown, P as Prettify, M as MapError, E as EdenFetchError } from './types-DNydNaKe.js'; | ||
import { T as TreatyToPath, a as IsNever, I as IsUnknown, P as Prettify, M as MapError, E as EdenFetchError } from './types-C41kuZ-K.js'; | ||
@@ -4,0 +4,0 @@ declare namespace EdenFetch { |
@@ -5,2 +5,2 @@ export { Treaty, treaty } from './treaty2.js'; | ||
import 'elysia'; | ||
import './types-DNydNaKe.js'; | ||
import './types-C41kuZ-K.js'; |
import { Elysia, InputSchema } from 'elysia'; | ||
import { P as Prettify, I as IsUnknown, M as MapError, a as IsNever, E as EdenFetchError } from './types-DNydNaKe.js'; | ||
import { P as Prettify, I as IsUnknown, M as MapError, a as IsNever, E as EdenFetchError } from './types-C41kuZ-K.js'; | ||
@@ -4,0 +4,0 @@ type Files = File | FileList; |
import { InputSchema, Elysia } from 'elysia'; | ||
import { P as Prettify, a as IsNever } from './types-DNydNaKe.js'; | ||
import { P as Prettify, a as IsNever, N as Not } from './types-C41kuZ-K.js'; | ||
@@ -21,4 +21,5 @@ declare class EdenWS<in out Schema extends InputSchema<any> = {}> { | ||
} & {}; | ||
type And<A extends boolean, B extends boolean> = A extends true ? B extends true ? true : false : false; | ||
type ReplaceGeneratorWithAsyncGenerator<in out RecordType extends Record<string, unknown>> = { | ||
[K in keyof RecordType]: RecordType[K] extends Generator<infer A, infer B, infer C> ? AsyncGenerator<A, B, C> : RecordType[K]; | ||
[K in keyof RecordType]: RecordType[K] extends Generator<infer A, infer B, infer C> ? And<Not<IsNever<A>>, void extends B ? true : false> extends true ? AsyncGenerator<A, B, C> : And<IsNever<A>, void extends B ? false : true> extends true ? B : AsyncGenerator<A, B, C> | B : RecordType[K] extends AsyncGenerator<infer A, infer B, infer C> ? And<Not<IsNever<A>>, void extends B ? true : false> extends true ? AsyncGenerator<A, B, C> : And<IsNever<A>, void extends B ? false : true> extends true ? B : AsyncGenerator<A, B, C> | B : RecordType[K]; | ||
} & {}; | ||
@@ -25,0 +26,0 @@ type MaybeArray<T> = T | T[]; |
import type { Elysia } from 'elysia'; | ||
import { EdenWS } from './ws'; | ||
import type { IsNever, Prettify } from '../types'; | ||
import type { IsNever, Not, Prettify } from '../types'; | ||
type Files = File | FileList; | ||
@@ -8,4 +8,5 @@ type ReplaceBlobWithFiles<in out RecordType extends Record<string, unknown>> = { | ||
} & {}; | ||
type And<A extends boolean, B extends boolean> = A extends true ? B extends true ? true : false : false; | ||
type ReplaceGeneratorWithAsyncGenerator<in out RecordType extends Record<string, unknown>> = { | ||
[K in keyof RecordType]: RecordType[K] extends Generator<infer A, infer B, infer C> ? AsyncGenerator<A, B, C> : RecordType[K]; | ||
[K in keyof RecordType]: RecordType[K] extends Generator<infer A, infer B, infer C> ? And<Not<IsNever<A>>, void extends B ? true : false> extends true ? AsyncGenerator<A, B, C> : And<IsNever<A>, void extends B ? false : true> extends true ? B : AsyncGenerator<A, B, C> | B : RecordType[K] extends AsyncGenerator<infer A, infer B, infer C> ? And<Not<IsNever<A>>, void extends B ? true : false> extends true ? AsyncGenerator<A, B, C> : And<IsNever<A>, void extends B ? false : true> extends true ? B : AsyncGenerator<A, B, C> | B : RecordType[K]; | ||
} & {}; | ||
@@ -12,0 +13,0 @@ type MaybeArray<T> = T | T[]; |
@@ -38,2 +38,3 @@ import type { EdenFetchError } from './errors'; | ||
}[keyof T] : {}>; | ||
export type Not<T> = T extends true ? false : true; | ||
export {}; |
{ | ||
"name": "@elysiajs/eden", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"description": "Fully type-safe Elysia client", | ||
@@ -70,3 +70,3 @@ "author": { | ||
"@types/node": "^18.15.5", | ||
"elysia": "^1.1.0", | ||
"elysia": ">= 1.1.0", | ||
"esbuild": "^0.19.3", | ||
@@ -73,0 +73,0 @@ "eslint": "^8.26.0", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
113415
865