@thi.ng/api
Advanced tools
Comparing version 1.1.1 to 1.2.0
@@ -8,3 +8,5 @@ /** | ||
assoc(key: K, val: V): T; | ||
assocIn(key: K[], val: V): T; | ||
update(key: K, f: (v: V) => V): T; | ||
updateIn(key: K[], f: (v: V) => V): T; | ||
} | ||
@@ -165,2 +167,3 @@ export interface IBind { | ||
get(key: K, notfound?: any): V; | ||
getIn(key: K[], notfound?: any): V; | ||
} | ||
@@ -170,5 +173,5 @@ /** | ||
*/ | ||
export interface IHash { | ||
export interface IHash<T> { | ||
/** | ||
* Returns a value's 32bit hash code. | ||
* Returns a value's hash code. | ||
* The contract of this function is: If | ||
@@ -178,3 +181,3 @@ * `IEquiv.equiv` returns `true` two values, | ||
*/ | ||
hash(): number; | ||
hash(): T; | ||
} | ||
@@ -181,0 +184,0 @@ export interface IID<T> { |
{ | ||
"name": "@thi.ng/api", | ||
"version": "1.1.1", | ||
"version": "1.2.0", | ||
"description": "Common, generic types & interfaces for thi.ng projects", | ||
@@ -11,3 +11,3 @@ "main": "index.js", | ||
"scripts": { | ||
"build": "rm -rf build && tsc --declaration && cp package.json build && cp *.md build", | ||
"build": "rm -rf build && tsc --declaration && cp package.json *.md build", | ||
"test": "tsc -p test && mocha build.test/test/*.js", | ||
@@ -23,4 +23,4 @@ "clean": "rm -rf build build.test doc node_modules && yarn install", | ||
"dependencies": { | ||
"@thi.ng/checks": "^1.0.0" | ||
"@thi.ng/checks": "^1.1.0" | ||
} | ||
} |
# @thi.ng/api | ||
[![npm (scoped)](https://img.shields.io/npm/v/@thi.ng/api.svg)](https://www.npmjs.com/package/@thi.ng/api) | ||
Generic, common interfaces, types, decorators and mixins for thi.ng TypeScript projects (and others). | ||
@@ -12,1 +14,8 @@ | ||
``` | ||
## Authors | ||
- Karsten Schmidt | ||
## License | ||
© 2016-2018 Karsten Schmidt // Apache Software License 2.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
20910
679
21
1
Updated@thi.ng/checks@^1.1.0