mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-07 00:07:07 +00:00
Revert "npx prettier --write .\types\isstream\**"
This reverts commit 88abe44230.
This commit is contained in:
Vendored
+1
@@ -16,3 +16,4 @@ declare namespace isstream {
|
||||
|
||||
function isWritable(obj: any): boolean;
|
||||
}
|
||||
|
||||
|
||||
@@ -1,34 +1,37 @@
|
||||
import isStream, { isReadable, isWritable, isDuplex } from "isstream";
|
||||
import * as Stream from "stream";
|
||||
import isStream, {isReadable, isWritable, isDuplex} from 'isstream';
|
||||
import * as Stream from 'stream';
|
||||
|
||||
isStream(new Stream()) // true
|
||||
|
||||
isStream({}) // false
|
||||
|
||||
isStream(new Stream.Readable()) // true
|
||||
isStream(new Stream.Writable()) // true
|
||||
isStream(new Stream.Duplex()) // true
|
||||
isStream(new Stream.Transform()) // true
|
||||
isStream(new Stream.PassThrough()) // true
|
||||
|
||||
isStream(new Stream()); // true
|
||||
|
||||
isStream({}); // false
|
||||
|
||||
isStream(new Stream.Readable()); // true
|
||||
isStream(new Stream.Writable()); // true
|
||||
isStream(new Stream.Duplex()); // true
|
||||
isStream(new Stream.Transform()); // true
|
||||
isStream(new Stream.PassThrough()); // true
|
||||
|
||||
isReadable(new Stream()); // false
|
||||
isWritable(new Stream()); // false
|
||||
isDuplex(new Stream()); // false
|
||||
|
||||
isReadable(new Stream.Readable()); // true
|
||||
isReadable(new Stream.Writable()); // false
|
||||
isReadable(new Stream.Duplex()); // true
|
||||
isReadable(new Stream.Transform()); // true
|
||||
isReadable(new Stream.PassThrough()); // true
|
||||
|
||||
isWritable(new Stream.Readable()); // false
|
||||
isWritable(new Stream.Writable()); // true
|
||||
isWritable(new Stream.Duplex()); // true
|
||||
isWritable(new Stream.Transform()); // true
|
||||
isWritable(new Stream.PassThrough()); // true
|
||||
|
||||
isDuplex(new Stream.Readable()); // false
|
||||
isDuplex(new Stream.Writable()); // false
|
||||
isDuplex(new Stream.Duplex()); // true
|
||||
isDuplex(new Stream.Transform()); // true
|
||||
isDuplex(new Stream.PassThrough()); // true
|
||||
|
||||
isReadable(new Stream()) // false
|
||||
isWritable(new Stream()) // false
|
||||
isDuplex(new Stream()) // false
|
||||
|
||||
isReadable(new Stream.Readable()) // true
|
||||
isReadable(new Stream.Writable()) // false
|
||||
isReadable(new Stream.Duplex()) // true
|
||||
isReadable(new Stream.Transform()) // true
|
||||
isReadable(new Stream.PassThrough()) // true
|
||||
|
||||
isWritable(new Stream.Readable()) // false
|
||||
isWritable(new Stream.Writable()) // true
|
||||
isWritable(new Stream.Duplex()) // true
|
||||
isWritable(new Stream.Transform()) // true
|
||||
isWritable(new Stream.PassThrough()) // true
|
||||
|
||||
isDuplex(new Stream.Readable()) // false
|
||||
isDuplex(new Stream.Writable()) // false
|
||||
isDuplex(new Stream.Duplex()) // true
|
||||
isDuplex(new Stream.Transform()) // true
|
||||
isDuplex(new Stream.PassThrough()) // true
|
||||
@@ -1,17 +1,24 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"lib": ["es6"],
|
||||
"lib": [
|
||||
"es6"
|
||||
],
|
||||
"noImplicitAny": true,
|
||||
"noImplicitThis": true,
|
||||
"strictNullChecks": true,
|
||||
"strictFunctionTypes": true,
|
||||
"baseUrl": "../",
|
||||
"typeRoots": ["../"],
|
||||
"typeRoots": [
|
||||
"../"
|
||||
],
|
||||
"types": [],
|
||||
"noEmit": true,
|
||||
"forceConsistentCasingInFileNames": true,
|
||||
"esModuleInterop": true
|
||||
},
|
||||
"files": ["index.d.ts", "isstream-tests.ts"]
|
||||
"files": [
|
||||
"index.d.ts",
|
||||
"isstream-tests.ts"
|
||||
]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user