@thi.ng/api
Advanced tools
Comparing version 6.1.1 to 6.2.0
25
api.d.ts
@@ -131,2 +131,27 @@ export declare const DEFAULT_EPS = 0.000001; | ||
export declare type TypedArray = Float32Array | Float64Array | Int8Array | Int16Array | Int32Array | Uint8Array | Uint8ClampedArray | Uint16Array | Uint32Array; | ||
export declare type IntArray = Int8Array | Int16Array | Int32Array; | ||
export declare type UIntArray = Uint8Array | Uint16Array | Uint32Array; | ||
export declare type FloatArray = Float32Array | Float64Array; | ||
export declare const enum Type { | ||
U8 = 0, | ||
U8C = 1, | ||
I8 = 2, | ||
U16 = 3, | ||
I16 = 4, | ||
U32 = 5, | ||
I32 = 6, | ||
F32 = 7, | ||
F64 = 8 | ||
} | ||
export declare const SIZEOF: { | ||
[Type.U8]: number; | ||
[Type.U8C]: number; | ||
[Type.I8]: number; | ||
[Type.U16]: number; | ||
[Type.I16]: number; | ||
[Type.U32]: number; | ||
[Type.I32]: number; | ||
[Type.F32]: number; | ||
[Type.F64]: number; | ||
}; | ||
/** | ||
@@ -133,0 +158,0 @@ * Observer function for `IWatch` implementations. |
23
api.js
@@ -13,2 +13,25 @@ export const DEFAULT_EPS = 1e-6; | ||
export const NO_OP = () => { }; | ||
export var Type; | ||
(function (Type) { | ||
Type[Type["U8"] = 0] = "U8"; | ||
Type[Type["U8C"] = 1] = "U8C"; | ||
Type[Type["I8"] = 2] = "I8"; | ||
Type[Type["U16"] = 3] = "U16"; | ||
Type[Type["I16"] = 4] = "I16"; | ||
Type[Type["U32"] = 5] = "U32"; | ||
Type[Type["I32"] = 6] = "I32"; | ||
Type[Type["F32"] = 7] = "F32"; | ||
Type[Type["F64"] = 8] = "F64"; | ||
})(Type || (Type = {})); | ||
export const SIZEOF = { | ||
[0 /* U8 */]: 1, | ||
[1 /* U8C */]: 1, | ||
[2 /* I8 */]: 1, | ||
[3 /* U16 */]: 2, | ||
[4 /* I16 */]: 2, | ||
[5 /* U32 */]: 4, | ||
[6 /* I32 */]: 4, | ||
[7 /* F32 */]: 4, | ||
[8 /* F64 */]: 8 | ||
}; | ||
export var LogLevel; | ||
@@ -15,0 +38,0 @@ (function (LogLevel) { |
@@ -6,2 +6,13 @@ # Change Log | ||
# [6.2.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/api@6.1.1...@thi.ng/api@6.2.0) (2019-05-22) | ||
### Features | ||
* **api:** add Type enum, IntArray, UIntArray, FloatArray, SIZEOF ([b0c44fe](https://github.com/thi-ng/umbrella/commit/b0c44fe)) | ||
## [6.1.1](https://github.com/thi-ng/umbrella/compare/@thi.ng/api@6.1.0...@thi.ng/api@6.1.1) (2019-04-26) | ||
@@ -8,0 +19,0 @@ |
@@ -13,2 +13,24 @@ 'use strict'; | ||
const NO_OP = () => { }; | ||
(function (Type) { | ||
Type[Type["U8"] = 0] = "U8"; | ||
Type[Type["U8C"] = 1] = "U8C"; | ||
Type[Type["I8"] = 2] = "I8"; | ||
Type[Type["U16"] = 3] = "U16"; | ||
Type[Type["I16"] = 4] = "I16"; | ||
Type[Type["U32"] = 5] = "U32"; | ||
Type[Type["I32"] = 6] = "I32"; | ||
Type[Type["F32"] = 7] = "F32"; | ||
Type[Type["F64"] = 8] = "F64"; | ||
})(exports.Type || (exports.Type = {})); | ||
const SIZEOF = { | ||
[0 ]: 1, | ||
[1 ]: 1, | ||
[2 ]: 1, | ||
[3 ]: 2, | ||
[4 ]: 2, | ||
[5 ]: 4, | ||
[6 ]: 4, | ||
[7 ]: 4, | ||
[8 ]: 8 | ||
}; | ||
(function (LogLevel) { | ||
@@ -247,2 +269,3 @@ LogLevel[LogLevel["FINE"] = 0] = "FINE"; | ||
exports.SEMAPHORE = SEMAPHORE; | ||
exports.SIZEOF = SIZEOF; | ||
exports.assert = assert; | ||
@@ -249,0 +272,0 @@ exports.configurable = configurable; |
@@ -13,2 +13,24 @@ (function (global, factory) { | ||
const NO_OP = () => { }; | ||
(function (Type) { | ||
Type[Type["U8"] = 0] = "U8"; | ||
Type[Type["U8C"] = 1] = "U8C"; | ||
Type[Type["I8"] = 2] = "I8"; | ||
Type[Type["U16"] = 3] = "U16"; | ||
Type[Type["I16"] = 4] = "I16"; | ||
Type[Type["U32"] = 5] = "U32"; | ||
Type[Type["I32"] = 6] = "I32"; | ||
Type[Type["F32"] = 7] = "F32"; | ||
Type[Type["F64"] = 8] = "F64"; | ||
})(exports.Type || (exports.Type = {})); | ||
const SIZEOF = { | ||
[0 ]: 1, | ||
[1 ]: 1, | ||
[2 ]: 1, | ||
[3 ]: 2, | ||
[4 ]: 2, | ||
[5 ]: 4, | ||
[6 ]: 4, | ||
[7 ]: 4, | ||
[8 ]: 8 | ||
}; | ||
(function (LogLevel) { | ||
@@ -247,2 +269,3 @@ LogLevel[LogLevel["FINE"] = 0] = "FINE"; | ||
exports.SEMAPHORE = SEMAPHORE; | ||
exports.SIZEOF = SIZEOF; | ||
exports.assert = assert; | ||
@@ -249,0 +272,0 @@ exports.configurable = configurable; |
{ | ||
"name": "@thi.ng/api", | ||
"version": "6.1.1", | ||
"version": "6.2.0", | ||
"description": "Common, generic types & interfaces for thi.ng projects", | ||
@@ -58,3 +58,3 @@ "module": "./index.js", | ||
"sideEffects": false, | ||
"gitHead": "aaa7369a8bbc6c540f3bce5f0c203365fe1b7dd8" | ||
"gitHead": "5a4226d52724f320fb25656f08addb2825375fee" | ||
} |
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
83695
1432