mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
26 lines
573 B
TypeScript
26 lines
573 B
TypeScript
// Type definitions for amp-message 0.1
|
|
// Project: https://github.com/visionmedia/node-amp-message
|
|
// Definitions by: Vilim Stubičan <https://github.com/jewbre>
|
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
// TypeScript Version: 2.4
|
|
|
|
/// <reference types="node" />
|
|
|
|
declare class Message {
|
|
constructor(args: Buffer | Buffer[]);
|
|
|
|
inspect(): string;
|
|
|
|
toBuffer(): Buffer;
|
|
|
|
push(...items: Buffer[]): number;
|
|
|
|
pop(): Buffer | undefined;
|
|
|
|
shift(): Buffer | undefined;
|
|
|
|
unshift(...items: Buffer[]): number;
|
|
}
|
|
|
|
export = Message;
|