mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
13 lines
519 B
TypeScript
13 lines
519 B
TypeScript
// Type definitions for buffer-from 1.1
|
|
// Project: https://github.com/LinusU/buffer-from#readme
|
|
// Definitions by: Nat Burns <https://github.com/burnnat>
|
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
|
|
/// <reference types="node" />
|
|
|
|
declare function bufferFrom(arrayBuffer: ArrayBuffer, byteOffset?: number, length?: number): Buffer;
|
|
declare function bufferFrom(str: string, encoding?: string): Buffer;
|
|
declare function bufferFrom(data: ReadonlyArray<any> | Buffer): Buffer;
|
|
|
|
export = bufferFrom;
|