convenient-typescript-utilities
Advanced tools
Comparing version 0.0.0 to 0.0.1
import * as array from './array'; | ||
import * as object from './object'; | ||
export { array, object }; | ||
import * as func from './func'; | ||
export { array, object, func }; |
@@ -8,2 +8,4 @@ "use strict"; | ||
exports.object = object; | ||
const func = tslib_1.__importStar(require("./func")); | ||
exports.func = func; | ||
//# sourceMappingURL=index.js.map |
@@ -11,1 +11,12 @@ export declare namespace SetUtils { | ||
} | ||
export declare namespace FunctionUtils { | ||
type RecursiveReturn<Return, Args extends any[]> = Return | ((...args: Args) => RecursiveReturn<Return, Args>); | ||
} | ||
export declare namespace TupleUtils { | ||
type SplitFirstOne<Tuple> = Tuple extends [infer First, ...(infer Rest)[]] ? [First, Rest[]] : never; | ||
type FirstElement<Tuple extends utils.Least[1]> = SplitFirstOne<Tuple>[0]; | ||
type ExcludeFirstElement<Tuple extends utils.Least[1]> = SplitFirstOne<Tuple>[1]; | ||
namespace utils { | ||
type Least<X = any> = [X[], [X, ...X[]], [X, X, ...X[]], [X, X, X, ...X[]]]; | ||
} | ||
} |
{ | ||
"name": "convenient-typescript-utilities", | ||
"version": "0.0.0", | ||
"version": "0.0.1", | ||
"description": "Convenient types and functions for TypeScript", | ||
@@ -5,0 +5,0 @@ "author": "Hoàng Văn Khải <hvksmr1996@gmail.com>", |
5001
24
95