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

@thi.ng/api

Package Overview
Dependencies
Maintainers
1
Versions
187
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@thi.ng/api - npm Package Compare versions

Comparing version 1.1.1 to 1.2.0

9

api.d.ts

@@ -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
&copy; 2016-2018 Karsten Schmidt // Apache Software License 2.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