type-plus
Advanced tools
Comparing version 1.12.1 to 1.13.0
@@ -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 |
{ | ||
"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
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
34461
123
422
116
4