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

type-plus

Package Overview
Dependencies
Maintainers
1
Versions
169
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

type-plus - npm Package Compare versions

Comparing version 1.12.1 to 1.13.0

lib/Brand.d.ts

3

lib/index.d.ts

@@ -0,4 +1,6 @@

export * from './Brand';
export * from './Except';
export * from './filterKey';
export * from './findKey';
export * from './Flavor';
export * from './forEachKey';

@@ -15,3 +17,4 @@ export * from './Id';

export * from './Required';
export * from './tryAssign';
export * from './typeAssert';
export * from './ValueOf';

@@ -6,2 +6,3 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
__export(require("./Brand"));
__export(require("./filterKey"));

@@ -15,3 +16,4 @@ __export(require("./findKey"));

__export(require("./reduceKey"));
__export(require("./tryAssign"));
__export(require("./typeAssert"));
//# sourceMappingURL=index.js.map

@@ -0,4 +1,6 @@

export * from './Brand';
export * from './Except';
export * from './filterKey';
export * from './findKey';
export * from './Flavor';
export * from './forEachKey';

@@ -15,3 +17,4 @@ export * from './Id';

export * from './Required';
export * from './tryAssign';
export * from './typeAssert';
export * from './ValueOf';

@@ -0,1 +1,2 @@

export * from './Brand';
export * from './filterKey';

@@ -9,3 +10,4 @@ export * from './findKey';

export * from './reduceKey';
export * from './tryAssign';
export * from './typeAssert';
//# sourceMappingURL=index.js.map

6

package.json
{
"name": "type-plus",
"description": "Provides additional types for `typescript`.",
"version": "1.12.1",
"version": "1.13.0",
"homepage": "https://github.com/unional/type-plus",

@@ -37,5 +37,7 @@ "bugs": {

"devDependencies": {
"@types/jest": "^24.0.0",
"@unional/devpkg-node": "^1.2.2",
"assertron": "^6.1.0"
"assertron": "^6.1.0",
"jest": "^24.1.0"
}
}

@@ -45,2 +45,8 @@ # type-plus

### Nominal Type
- `Flavor<FlavorT, T>`: a flavored nominal type.
- `Brand<BrandT, T>`: a branded nominal type.
- `createBrandCreator<BrandT, T>()`: creates a brand creator to create branded nominal type.
### Type manipulation

@@ -58,2 +64,3 @@

- `ValueOf<T>`: type of the value of the properties of `T`.
- `tryAssign<S, T>(from: S, to: T)`: try assign `from` to `to`. Return type `never` if not possible.

@@ -67,2 +74,8 @@ ### Type assertion

## Attribution
Some of the code in this library are created by other people in the TypeScript community.
I merely adding them in and may be making some adjustments.
When ever possible, I add attribution to the person who created those code in the file.
## Contribute

@@ -69,0 +82,0 @@

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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