mirror of
https://github.com/chenasraf/DefinitelyTyped.git
synced 2026-05-18 01:49:01 +00:00
* readalb-stream: restore typing tests * readable-stream: add missing properties * duplex-to: use NodeJS streams for tests destination types
18 lines
530 B
TypeScript
18 lines
530 B
TypeScript
import duplexTo = require('duplex-to');
|
|
import { Readable, Stream, Writable } from 'stream';
|
|
import * as readableStream from 'readable-stream';
|
|
|
|
function testBuiltIn() {
|
|
const duplex: Stream = <any> {};
|
|
|
|
const readable: Readable = duplexTo.readable(duplex);
|
|
const writable: Writable = duplexTo.writable(duplex);
|
|
}
|
|
|
|
function testReadableStream() {
|
|
const duplex: readableStream.Duplex = <any> {};
|
|
|
|
const readable: Readable = duplexTo.readable(duplex);
|
|
const writable: Writable = duplexTo.writable(duplex);
|
|
}
|