DefinitelyTyped/types/amp/index.d.ts
2018-03-30 21:19:44 +02:00

20 lines
566 B
TypeScript

// Type definitions for amp 0.3
// Project: https://github.com/visionmedia/node-amp
// Definitions by: Vilim Stubičan <https://github.com/jewbre>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.4
/// <reference types="node" />
import * as stream from 'stream';
export function decode(buf: Buffer): Buffer[];
export function encode(args: Buffer[]): Buffer;
export class Stream extends stream.Writable {
constructor(opts: stream.WritableOptions);
_write(chunk: any, encoding: string, fn: () => void): void;
}