@typed/lambda
Advanced tools
Comparing version 1.0.1 to 1.0.2
@@ -21,3 +21,3 @@ export declare type Primitive = undefined | null | boolean | string | number | Function; | ||
} | ||
export declare type Fn<Args extends any[] = any[], R = any> = (...args: Args) => R; | ||
export declare type Fn<Args extends readonly any[] = any[], R = any> = (...args: Args) => R; | ||
export declare type Curry<T extends Fn> = ArgsOf<T> extends [infer A] ? Arity1<A, ReturnType<T>> : ArgsOf<T> extends [infer A, infer B] ? Curry2<A, B, ReturnType<T>> : ArgsOf<T> extends [infer A, infer B, infer C] ? Curry3<A, B, C, ReturnType<T>> : ArgsOf<T> extends [infer A, infer B, infer C, infer D] ? Curry4<A, B, C, D, ReturnType<T>> : ArgsOf<T> extends [infer A, infer B, infer C, infer D, infer E] ? Curry5<A, B, C, D, E, ReturnType<T>> : ArgsOf<T> extends never[] ? IO<ReturnType<T>> : never; | ||
@@ -24,0 +24,0 @@ export declare type ArgsOf<T extends Fn> = T extends Fn<infer Args, any> ? Args : []; |
@@ -21,3 +21,3 @@ export declare type Primitive = undefined | null | boolean | string | number | Function; | ||
} | ||
export declare type Fn<Args extends any[] = any[], R = any> = (...args: Args) => R; | ||
export declare type Fn<Args extends readonly any[] = any[], R = any> = (...args: Args) => R; | ||
export declare type Curry<T extends Fn> = ArgsOf<T> extends [infer A] ? Arity1<A, ReturnType<T>> : ArgsOf<T> extends [infer A, infer B] ? Curry2<A, B, ReturnType<T>> : ArgsOf<T> extends [infer A, infer B, infer C] ? Curry3<A, B, C, ReturnType<T>> : ArgsOf<T> extends [infer A, infer B, infer C, infer D] ? Curry4<A, B, C, D, ReturnType<T>> : ArgsOf<T> extends [infer A, infer B, infer C, infer D, infer E] ? Curry5<A, B, C, D, E, ReturnType<T>> : ArgsOf<T> extends never[] ? IO<ReturnType<T>> : never; | ||
@@ -24,0 +24,0 @@ export declare type ArgsOf<T extends Fn> = T extends Fn<infer Args, any> ? Args : []; |
{ | ||
"name": "@typed/lambda", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "Helpful functions for working in a functional style", | ||
@@ -38,4 +38,4 @@ "main": "./cjs/index.js", | ||
"sideEffects": false, | ||
"gitHead": "8b2b4a461b095009848d027948f97eae513593a4", | ||
"gitHead": "234e175da43230384b18c53bddce77316bd90100", | ||
"unpkg": "./umd/index.js" | ||
} |
@@ -39,3 +39,3 @@ export type Primitive = undefined | null | boolean | string | number | Function | ||
export type Fn<Args extends any[] = any[], R = any> = (...args: Args) => R | ||
export type Fn<Args extends readonly any[] = any[], R = any> = (...args: Args) => R | ||
@@ -42,0 +42,0 @@ // tslint:disable:no-shadowed-variable |
@@ -21,3 +21,3 @@ export declare type Primitive = undefined | null | boolean | string | number | Function; | ||
} | ||
export declare type Fn<Args extends any[] = any[], R = any> = (...args: Args) => R; | ||
export declare type Fn<Args extends readonly any[] = any[], R = any> = (...args: Args) => R; | ||
export declare type Curry<T extends Fn> = ArgsOf<T> extends [infer A] ? Arity1<A, ReturnType<T>> : ArgsOf<T> extends [infer A, infer B] ? Curry2<A, B, ReturnType<T>> : ArgsOf<T> extends [infer A, infer B, infer C] ? Curry3<A, B, C, ReturnType<T>> : ArgsOf<T> extends [infer A, infer B, infer C, infer D] ? Curry4<A, B, C, D, ReturnType<T>> : ArgsOf<T> extends [infer A, infer B, infer C, infer D, infer E] ? Curry5<A, B, C, D, E, ReturnType<T>> : ArgsOf<T> extends never[] ? IO<ReturnType<T>> : never; | ||
@@ -24,0 +24,0 @@ export declare type ArgsOf<T extends Fn> = T extends Fn<infer Args, any> ? Args : []; |
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
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
452614
191