Revert "npx prettier --write .\types\isstream\**"

This reverts commit 88abe44230.
This commit is contained in:
Claas Ahlrichs
2019-04-14 14:39:19 +02:00
parent de891ecc3b
commit e8fa44b4c2
3 changed files with 45 additions and 34 deletions
+1
View File
@@ -16,3 +16,4 @@ declare namespace isstream {
function isWritable(obj: any): boolean;
}
+34 -31
View File
@@ -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
+10 -3
View File
@@ -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"
]
}