# typedarray-dts

> TypeScript type definitions for JS TypedArrays

Latest version **1.0.0** (published 2018-01-03) · MIT license · 0 weekly downloads

## Install

```sh
npm install typedarray-dts
pnpm add typedarray-dts
yarn add typedarray-dts
bun add typedarray-dts
```

## Health

**Score 20/100 (F)** — status: abandoned.

Positive: has types; no vulnerabilities.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2018-01-03 |
| First published | 2018-01-03 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | George Thomas |
| Maintainers | mgthomas99 |
| Keywords | definitions, typescript, types, typings |

## Links

- npm: https://www.npmjs.com/package/typedarray-dts
- Repository: https://github.com/mgthomas99/typedarray-dts
- Homepage: https://github.com/mgthomas99/typedarray-dts/README.md
- Issues: https://github.com/mgthomas99/typedarray-dts/issues
- npm.io page: https://npm.io/package/typedarray-dts

## Alternatives

- [@openai/codex-sdk](https://npm.io/package/@openai/codex-sdk.md) — 731.4K weekly downloads
- [babel-plugin-transform-react-jsx](https://npm.io/package/babel-plugin-transform-react-jsx.md) — 565.0K weekly downloads
- [babel-helper-remove-or-void](https://npm.io/package/babel-helper-remove-or-void.md) — 508.5K weekly downloads
- [@pnpm/store-controller-types](https://npm.io/package/@pnpm/store-controller-types.md) — 186.9K weekly downloads
- [react-native-signature-canvas](https://npm.io/package/react-native-signature-canvas.md) — 155.6K weekly downloads

## Recent versions

- 1.0.0 (latest) — 2018-01-03

## README

# typedarray-dts

Type definitions for JavaScript typed arrays.

There are 9 typed array types in JavaScript:

- Int8Array
- Int16Array
- Int32Array
- Uint8Array
- Uint16Array
- Uint32Array
- Uint8ClampedArray
- Float32Array
- Float64Array

It is not unusual to require a variable that is of a `TypedArray` type. However,
the JavaScript standard library type definitions do not include an abstract
`TypedArray` type. This package implements one.

## Usage

This package does not implement functionality, only type definitions.

```ts
import { TypedArray } from "typedarray-dts";

function doSomething(x: TypedArray): void {
    // IntelliSense now knows `x` is a `TypedArray`!
}
```

There are two other types provided by this package: `SignedTypedArray` and
`UnsignedTypedArray`:

```ts
import { SignedTypedArray, UnsignedTypedArray } from "typedarray-dts";

function doSomethingSigned(x: SignedTypedArray): void {
    // `x` is a signed `TypedArray`!
}

function doSomethingUnsigned(x: UnsignedTypedArray): void {
    // `x` is an unsigned `TypedArray`!
}
```

## License

Refer to the `LICENSE` file for license information.

---
_Source: https://npm.io/package/typedarray-dts · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
