@types/get-pixels
Version:
TypeScript definitions for get-pixels
30 lines (20 loc) • 1.04 kB
Markdown
# Installation
> `npm install --save @types/get-pixels`
# Summary
This package contains type definitions for get-pixels (https://github.com/scijs/get-pixels#readme).
# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/get-pixels.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/get-pixels/index.d.ts)
````ts
/// <reference types="node" />
import { NdArray } from "ndarray";
type Callback = (err: Error | null, pixels: NdArray<Uint8Array>) => void;
declare function getPixels(path: string, callback: Callback): void;
declare function getPixels(path: string | Uint8Array, type: string, callback: Callback): void;
export = getPixels;
````
### Additional Details
* Last updated: Tue, 07 Nov 2023 03:09:37 GMT
* Dependencies: [@types/ndarray](https://npmjs.com/package/@types/ndarray), [@types/node](https://npmjs.com/package/@types/node)
# Credits
These definitions were written by [Don McCurdy](https://github.com/donmccurdy).