Socket
Socket
Sign inDemoInstall

@js-bits/typedef-utils

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@js-bits/typedef-utils - npm Package Compare versions

Comparing version 0.0.6 to 0.0.7

2

package.json
{
"name": "@js-bits/typedef-utils",
"version": "0.0.6",
"version": "0.0.7",
"description": "Utility types for TypeScript",

@@ -5,0 +5,0 @@ "keywords": [

@@ -5,2 +5,13 @@ # Utility types for TypeScript

```typescript
const parse: MathUtils.Parse<'-56.78'> = -56.78;
const add: MathUtils.Add<9999999, 9999999> = 19999998;
const multiply: MathUtils.Multiply<78, 63> = 4914;
const trim: StringUtils.Trim<' abc '> = 'abc';
const split: StringUtils.Split<'a b c', ' '> = ['a', 'b', 'c'];
const length: TupleUtils.Length<[1, 2, 3, 4, 5]> = 5;
const longest: TupleUtils.Longest<[1], [1, 2, 3]> = [1, 2, 3];
const append: TupleUtils.Append<[1, 2, 3, 4], 5> = [1, 2, 3, 4, 5];
```
Follow the reference docs for more information:

@@ -7,0 +18,0 @@

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