@types/post-message-stream
TypeScript icon, indicating that this package has built-in type declarations

3.0.4 • Public • Published

Installation

npm install --save @types/post-message-stream

Summary

This package contains type definitions for post-message-stream (https://github.com/baalexander/node-portscanner).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/post-message-stream.

index.d.ts

import { Duplex } from "readable-stream";

declare class PostMessageStream extends Duplex {
    _name: string;
    _target: string;
    _targetWindow: Window;
    _origin: string;
    _init: boolean;
    _haveSyn: boolean;

    constructor(props: {
        name: string;
        target: string;
        targetWindow?: Window | undefined;
    });

    _write(
        data: any,
        _encoding: BufferEncoding,
        cb: () => void,
    ): void;
}

export = PostMessageStream;

Additional Details

Credits

These definitions were written by Douglas Duteil.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/post-message-stream

Weekly Downloads

55

Version

3.0.4

License

MIT

Unpacked Size

3.72 kB

Total Files

5

Last publish

Collaborators

  • types