@types/ndarray
Advanced tools
Comparing version 1.0.11 to 1.0.12
@@ -46,6 +46,4 @@ // Type definitions for ndarray 1.0 | ||
type Data<T = any> = T extends number | ||
? GenericArray<T> | T[] | TypedArray | ||
: T extends bigint | ||
? GenericArray<T> | T[] | MaybeBigInt64Array | MaybeBigUint64Array | ||
type Data<T = any> = T extends number ? GenericArray<T> | T[] | TypedArray | ||
: T extends bigint ? GenericArray<T> | T[] | MaybeBigInt64Array | MaybeBigUint64Array | ||
: GenericArray<T> | T[]; | ||
@@ -66,29 +64,17 @@ | ||
type DataType<D extends Data = Data> = D extends Int8Array | ||
? 'int8' | ||
: D extends Int16Array | ||
? 'int16' | ||
: D extends Int32Array | ||
? 'int32' | ||
: D extends Uint8Array | ||
? 'uint8' | ||
: D extends Uint8ClampedArray | ||
? 'uint8_clamped' | ||
: D extends Uint16Array | ||
? 'uint16' | ||
: D extends Uint32Array | ||
? 'uint32' | ||
: D extends Float32Array | ||
? 'float32' | ||
: D extends Float64Array | ||
? 'float64' | ||
: D extends MaybeBigInt64Array | ||
? 'bigint64' | ||
: D extends MaybeBigUint64Array | ||
? 'biguint64' | ||
: D extends GenericArray<unknown> | ||
? 'generic' | ||
: 'array'; | ||
type DataType<D extends Data = Data> = D extends Int8Array ? "int8" | ||
: D extends Int16Array ? "int16" | ||
: D extends Int32Array ? "int32" | ||
: D extends Uint8Array ? "uint8" | ||
: D extends Uint8ClampedArray ? "uint8_clamped" | ||
: D extends Uint16Array ? "uint16" | ||
: D extends Uint32Array ? "uint32" | ||
: D extends Float32Array ? "float32" | ||
: D extends Float64Array ? "float64" | ||
: D extends MaybeBigInt64Array ? "bigint64" | ||
: D extends MaybeBigUint64Array ? "biguint64" | ||
: D extends GenericArray<unknown> ? "generic" | ||
: "array"; | ||
} | ||
export = ndarray; |
{ | ||
"name": "@types/ndarray", | ||
"version": "1.0.11", | ||
"version": "1.0.12", | ||
"description": "TypeScript definitions for ndarray", | ||
@@ -33,4 +33,4 @@ "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/ndarray", | ||
"dependencies": {}, | ||
"typesPublisherContentHash": "6eca0a07e6bfa041e4a3127360bace0beeb40da711c738c25d2b9f6d694412c4", | ||
"typeScriptVersion": "3.7" | ||
"typesPublisherContentHash": "06a7ef20951cab88a3b43ddce093d3d3ece2009fe25ef27cb93d454b82a5c9a3", | ||
"typeScriptVersion": "4.5" | ||
} |
@@ -11,3 +11,3 @@ # Installation | ||
### Additional Details | ||
* Last updated: Thu, 28 Oct 2021 11:01:22 GMT | ||
* Last updated: Sat, 23 Sep 2023 20:38:33 GMT | ||
* Dependencies: none | ||
@@ -14,0 +14,0 @@ * Global values: none |
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
5542
69