{"_id":"typedarray-dts","_rev":"1620470","name":"typedarray-dts","description":"TypeScript type definitions for JS TypedArrays","dist-tags":{"latest":"1.0.0"},"maintainers":[{"name":"mgthomas99","email":"m.g.thomas99@gmail.com"}],"time":{"modified":"2021-11-18T10:16:21.000Z","created":"2018-01-03T14:31:35.582Z","1.0.0":"2018-01-03T14:31:35.582Z"},"users":{},"author":{"name":"George Thomas"},"repository":{"type":"git","url":"git+https://github.com/mgthomas99/typedarray-dts.git"},"versions":{"1.0.0":{"name":"typedarray-dts","version":"1.0.0","description":"TypeScript type definitions for JS TypedArrays","author":{"name":"George Thomas"},"license":"MIT","homepage":"https://github.com/mgthomas99/typedarray-dts/README.md","repository":{"type":"git","url":"git+https://github.com/mgthomas99/typedarray-dts.git"},"bugs":{"url":"https://github.com/mgthomas99/typedarray-dts/issues"},"keywords":["definitions","typescript","types","typings"],"typings":"src/index.d.ts","gitHead":"aee9b6f3b9c75d956352d8d639451a06655f3dd3","_id":"typedarray-dts@1.0.0","_npmVersion":"5.6.0","_nodeVersion":"8.9.1","_npmUser":{"name":"mgthomas99","email":"m.g.thomas99@gmail.com"},"dist":{"shasum":"9dec9811386dbfba964c295c2606cf9a6b982d06","size":1726,"noattachment":false,"key":"/typedarray-dts/-/typedarray-dts-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/typedarray-dts/download/typedarray-dts-1.0.0.tgz"},"maintainers":[{"name":"mgthomas99","email":"m.g.thomas99@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/typedarray-dts-1.0.0.tgz_1514989894781_0.29494228144176304"},"directories":{},"publish_time":1514989895582,"_hasShrinkwrap":false,"_cnpm_publish_time":1514989895582}},"readme":"# typedarray-dts\n\nType definitions for JavaScript typed arrays.\n\nThere are 9 typed array types in JavaScript:\n\n- Int8Array\n- Int16Array\n- Int32Array\n- Uint8Array\n- Uint16Array\n- Uint32Array\n- Uint8ClampedArray\n- Float32Array\n- Float64Array\n\nIt is not unusual to require a variable that is of a `TypedArray` type. However,\nthe JavaScript standard library type definitions do not include an abstract\n`TypedArray` type. This package implements one.\n\n## Usage\n\nThis package does not implement functionality, only type definitions.\n\n```ts\nimport { TypedArray } from \"typedarray-dts\";\n\nfunction doSomething(x: TypedArray): void {\n    // IntelliSense now knows `x` is a `TypedArray`!\n}\n```\n\nThere are two other types provided by this package: `SignedTypedArray` and\n`UnsignedTypedArray`:\n\n```ts\nimport { SignedTypedArray, UnsignedTypedArray } from \"typedarray-dts\";\n\nfunction doSomethingSigned(x: SignedTypedArray): void {\n    // `x` is a signed `TypedArray`!\n}\n\nfunction doSomethingUnsigned(x: UnsignedTypedArray): void {\n    // `x` is an unsigned `TypedArray`!\n}\n```\n\n## License\n\nRefer to the `LICENSE` file for license information.\n","_attachments":{},"homepage":"https://github.com/mgthomas99/typedarray-dts/README.md","bugs":{"url":"https://github.com/mgthomas99/typedarray-dts/issues"},"license":"MIT"}