Socket
Socket
Sign inDemoInstall

@thi.ng/api

Package Overview
Dependencies
Maintainers
1
Versions
186
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 4.0.6 to 4.1.0

15

api.d.ts

@@ -5,2 +5,3 @@ export declare const DEFAULT_EPS = 0.000001;

export declare const EVENT_DISABLE = "disable";
export declare const SEMAPHORE: unique symbol;
/**

@@ -16,5 +17,14 @@ * Generic 2-element comparator function type alias. Must follow this

/**
* A single arg function from A => B.
*/
export declare type Fn<A, B> = (x: A) => B;
/**
* A vararg arg function to type T.
*/
export declare type FnAny<T> = (...xs: any[]) => T;
/**
* Event listener.
*/
export declare type Listener = (e: Event) => void;
export declare type NumericArray = number[] | TypedArray;
/**

@@ -25,2 +35,6 @@ * Lookup path for nested data structures.

/**
* A key-value pair / tuple.
*/
export declare type Pair<K, V> = [K, V];
/**
* Predicate function mapping given value to true/false.

@@ -41,2 +55,3 @@ */

export declare type StatefulPredicate2<T> = () => Predicate2<T>;
export declare type TypedArray = Float32Array | Float64Array | Int8Array | Int16Array | Int32Array | Uint8Array | Uint8ClampedArray | Uint16Array | Uint32Array;
/**

@@ -43,0 +58,0 @@ * Observer function for `IWatch` implementations.

1

api.js

@@ -7,1 +7,2 @@ "use strict";

exports.EVENT_DISABLE = "disable";
exports.SEMAPHORE = Symbol();

@@ -6,2 +6,14 @@ # Change Log

<a name="4.1.0"></a>
# [4.1.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/api@4.0.6...@thi.ng/api@4.1.0) (2018-08-24)
### Features
* **api:** add new/move type aliases into api.ts ([cf30ba2](https://github.com/thi-ng/umbrella/commit/cf30ba2))
* **api:** add NumericArray and TypedArray types ([519394b](https://github.com/thi-ng/umbrella/commit/519394b))
<a name="4.0.6"></a>

@@ -8,0 +20,0 @@ ## [4.0.6](https://github.com/thi-ng/umbrella/compare/@thi.ng/api@4.0.5...@thi.ng/api@4.0.6) (2018-08-01)

2

package.json
{
"name": "@thi.ng/api",
"version": "4.0.6",
"version": "4.1.0",
"description": "Common, generic types & interfaces for thi.ng projects",

@@ -5,0 +5,0 @@ "main": "./index.js",

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