@types/dtype
TypeScript icon, indicating that this package has built-in type declarations

2.0.3 • Public • Published

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.

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i @types/dtype

      Weekly Downloads

      145

      Version

      2.0.3

      License

      MIT

      Unpacked Size

      4.22 kB

      Total Files

      5

      Last publish

      Collaborators

      • types