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
- Last updated: Tue, 07 Nov 2023 09:09:39 GMT
- Dependencies: @types/readable-stream
Credits
These definitions were written by Douglas Duteil.