Comparing version 0.0.5 to 0.0.6
@@ -5,4 +5,7 @@ export declare function negate<Params extends any[], Result>(f: (...params: Params) => Result): (...params: Params) => boolean; | ||
export declare function not<T extends boolean>(b: T): T extends true ? false : true; | ||
type ChainResult<P> = P extends [infer F1, ...any[]] ? F1 extends (next: () => any, ...params: infer Params) => infer R ? (...params: Params) => R : never : () => void; | ||
export interface IChainable<Params extends any[] = any, Result = any> { | ||
(next: () => any, ...params: Params): Result; | ||
} | ||
type ChainResult<P> = P extends [infer F1, ...any[]] ? F1 extends IChainable<infer Params, infer R> ? (...params: Params) => R : never : () => void; | ||
export declare function chain<P extends any[]>(...fs: P): ChainResult<P>; | ||
export {}; |
@@ -25,2 +25,2 @@ "use strict"; | ||
exports.chain = chain; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZnVuYy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uL3NyYy9mdW5jLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7OztBQUFBLFNBQWdCLE1BQU0sQ0FDckIsQ0FBZ0M7SUFFaEMsT0FBTyxDQUFDLEdBQUcsTUFBYyxFQUFFLEVBQUUsQ0FBQyxDQUFDLENBQUMsQ0FBQyxHQUFHLE1BQU0sQ0FBQyxDQUFBO0FBQzVDLENBQUM7QUFKRCx3QkFJQztBQUNELFNBQWdCLFFBQVEsQ0FBSSxDQUFJO0lBQy9CLE9BQU8sQ0FBQyxDQUFBO0FBQ1QsQ0FBQztBQUZELDRCQUVDO0FBQ0QsU0FBZ0IsSUFBSSxLQUFJLENBQUM7QUFBekIsb0JBQXlCO0FBQ3pCLFNBQWdCLEdBQUcsQ0FBb0IsQ0FBSTtJQUMxQyxPQUFPLENBQUMsQ0FBQyxDQUFDLENBQWtDLENBQUE7QUFDN0MsQ0FBQztBQUZELGtCQUVDO0FBT0QsbUNBQW1DO0FBQ25DLCtEQUErRDtBQUMvRCx5RkFBeUY7QU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QUUsRUFBRSxDQUFDLENBQW1CLEdBQUcsTUFBVSxFQUFFLEVBQUUsQ0FBQyxHQUFHLENBQUMsR0FBaUIsRUFBRSxHQUFHLE1BQU0sQ0FBQyxFQUNwRixJQUFJLENBQ0osQ0FBQTtBQUNGLENBQUM7QUFMRCxzQkFLQyJ9 |
@@ -11,1 +11,2 @@ export { isBrowser, ensureBrowser } from './dom.js'; | ||
export type { IgnoreLastIfVoid, UndefinedToNull, Nullable, UnionToIntersection, AllOrNone, Promisable } from './type.js'; | ||
export type { IChainable } from './func.js'; |
@@ -5,4 +5,7 @@ export declare function negate<Params extends any[], Result>(f: (...params: Params) => Result): (...params: Params) => boolean; | ||
export declare function not<T extends boolean>(b: T): T extends true ? false : true; | ||
type ChainResult<P> = P extends [infer F1, ...any[]] ? F1 extends (next: () => any, ...params: infer Params) => infer R ? (...params: Params) => R : never : () => void; | ||
export interface IChainable<Params extends any[] = any, Result = any> { | ||
(next: () => any, ...params: Params): Result; | ||
} | ||
type ChainResult<P> = P extends [infer F1, ...any[]] ? F1 extends IChainable<infer Params, infer R> ? (...params: Params) => R : never : () => void; | ||
export declare function chain<P extends any[]>(...fs: P): ChainResult<P>; | ||
export {}; |
@@ -17,2 +17,2 @@ export function negate(f) { | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZnVuYy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uL3NyYy9mdW5jLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE1BQU0sVUFBVSxNQUFNLENBQ3JCLENBQWdDO0lBRWhDLE9BQU8sQ0FBQyxHQUFHLE1BQWMsRUFBRSxFQUFFLENBQUMsQ0FBQyxDQUFDLENBQUMsR0FBRyxNQUFNLENBQUMsQ0FBQTtBQUM1QyxDQUFDO0FBQ0QsTUFBTSxVQUFVLFFBQVEsQ0FBSSxDQUFJO0lBQy9CLE9BQU8sQ0FBQy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DO0FBV0QsbUNBQW1DO0FBQ25DLCtEQUErRDtBQUMvRCx5RkFBeUY7QUFDekYsTUFBTSxVQUFVLEtBQUssQ0FBa0IsR0FBRyxFQUFLO0lBQzlDLE9BQU8sRUFBRSxDQUFDLFdBQVcsQ0FDcEIsQ0FBQyxHQUFHLEVBQUUsR0FBRyxFQUFFLEVBQUUsQ0FBQyxDQUFtQixHQUFHLE1BQVUsRUFBRSxFQUFFLENBQUMsR0FBRyxDQUFDLEdBQWlCLEVBQUUsR0FBRyxNQUFNLENBQUMsRUFDcEYsSUFBSSxDQUNKLENBQUE7QUFDRixDQUFDIn0= |
@@ -11,1 +11,2 @@ export { isBrowser, ensureBrowser } from './dom.js'; | ||
export type { IgnoreLastIfVoid, UndefinedToNull, Nullable, UnionToIntersection, AllOrNone, Promisable } from './type.js'; | ||
export type { IChainable } from './func.js'; |
{ | ||
"name": "jmisc", | ||
"version": "0.0.5", | ||
"version": "0.0.6", | ||
"main": "cjs/index.js", | ||
@@ -5,0 +5,0 @@ "exports": { |
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
83009
1076