Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

convenient-typescript-utilities

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

convenient-typescript-utilities - npm Package Compare versions

Comparing version 0.0.0 to 0.0.1

lib/functions/func/index.d.ts

3

lib/functions/index.d.ts
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>",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc