@thi.ng/api
Advanced tools
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. |
@@ -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) |
{ | ||
"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", |
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
40950
735