3.0.4 • Published 6 months ago

@types/post-message-stream v3.0.4

Weekly downloads
-
License
MIT
Repository
github
Last release
6 months ago

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

// Type definitions for post-message-stream 3.0
// Project: https://github.com/baalexander/node-portscanner
// Definitions by: Douglas Duteil <https://github.com/douglasduteil>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

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.

3.0.4

6 months ago

3.0.3

7 months ago

3.0.2

8 months ago

3.0.1

3 years ago

3.0.0

3 years ago