3.3.4 • Published 2 years ago

@types/get-pixels v3.3.4

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

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

// Type definitions for get-pixels 3.3
// Project: https://github.com/scijs/get-pixels#readme
// Definitions by: Don McCurdy <https://github.com/donmccurdy>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

/// <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

Credits

These definitions were written by Don McCurdy.