Installation
npm install --save @types/dtype
Summary
This package contains type definitions for dtype (https://github.com/shama/dtype).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/dtype.
index.d.ts
/**
* Return a data type from a string representing the data type.
*/
declare function dtype(type: "int8"): Int8ArrayConstructor;
declare function dtype(type: "int16"): Int16ArrayConstructor;
declare function dtype(type: "int32"): Int32ArrayConstructor;
declare function dtype(type: "uint8"): Uint8ArrayConstructor;
declare function dtype(type: "uint16"): Uint16ArrayConstructor;
declare function dtype(type: "uint32"): Uint32ArrayConstructor;
declare function dtype(type: "uint32"): Uint32ArrayConstructor;
declare function dtype(type: "float32"): Float32ArrayConstructor;
declare function dtype(type: "Float64Array"): Float64ArrayConstructor;
declare function dtype(type: "uint8_clamped"): Uint8ClampedArrayConstructor;
declare function dtype(type: "array"): ArrayConstructor;
declare function dtype(type: any): undefined;
export = dtype;
Additional Details
- Last updated: Mon, 06 Nov 2023 22:41:05 GMT
- Dependencies: none
Credits
These definitions were written by Piotr Błażejewicz.