@kiwi-lib/utils
Advanced tools
Comparing version 0.0.3 to 0.0.4
@@ -1,2 +0,7 @@ | ||
export declare type Function<T extends any[], R> = (...args: T) => R; | ||
export declare type AsyncFunction<T extends any[], R> = (...args: T) => Promise<R>; | ||
export declare type Function5<A, B, C, D, E, R> = (a: A, b: B, c: C, d: D, e: E) => R; | ||
export declare type Function4<A, B, C, D, R> = (a: A, b: B, c: C, d: D) => R; | ||
export declare type Function3<A, B, C, R> = (a: A, b: B, c: C) => R; | ||
export declare type Function2<A, B, R> = (a: A, b: B) => R; | ||
export declare type Function1<A, R> = (a: A) => R; | ||
export declare type Function<A, B, C = undefined, D = undefined, E = undefined, F = undefined> = F extends undefined ? E extends undefined ? D extends undefined ? C extends undefined ? Function1<A, B> : Function2<A, B, C> : Function3<A, B, C, D> : Function4<A, B, C, D, E> : Function5<A, B, C, D, E, F>; | ||
export declare type AsyncFunction<A, B, C = undefined, D = undefined, E = undefined, F = undefined> = F extends undefined ? E extends undefined ? D extends undefined ? C extends undefined ? Function1<A, Promise<B>> : Function2<A, B, Promise<C>> : Function3<A, B, C, Promise<D>> : Function4<A, B, C, D, Promise<E>> : Function5<A, B, C, D, E, Promise<F>>; |
{ | ||
"name": "@kiwi-lib/utils", | ||
"version": "0.0.3", | ||
"version": "0.0.4", | ||
"main": "src/index.ts", | ||
@@ -5,0 +5,0 @@ "types": "lib/index.d.ts", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
30265
47