@js-bits/typedef-utils
Advanced tools
Comparing version 0.0.6 to 0.0.7
{ | ||
"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 @@ |
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
60801
21