npm.io
3.0.4 • Published 2 years ago

@types/post-message-stream

Licence
MIT
Version
3.0.4
Deps
1
Size
4 kB
Vulns
0
Weekly
0
Stars
51.4K

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.