This commit is contained in:
bangbang93
2019-01-11 10:14:44 +08:00
parent 126b994508
commit 0d8be32437
2 changed files with 6 additions and 4 deletions
+4 -3
View File
@@ -2,12 +2,13 @@
// Project: https://github.com/JSBizon/node-memorystream
// Definitions by: My Self <https://github.com/me>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/// <reference types="node" />
import { Stream, Duplex } from "stream";
type DataType = string | Buffer | Stream;
interface IOptions {
interface Options {
readable: boolean;
writeable: boolean;
maxbufsize: number;
@@ -18,8 +19,8 @@ interface IOptions {
declare class MemoryStream extends Duplex {
constructor(
data?: DataType | DataType[],
options?: IOptions,
options?: Options,
);
}
export = MemoryStream;
export = MemoryStream;
+2 -1
View File
@@ -7,11 +7,12 @@
"noImplicitAny": true,
"noImplicitThis": true,
"strictNullChecks": true,
"strictFunctionTypes": true,
"baseUrl": "../",
"typeRoots": [
"../"
],
"types": ["node"],
"types": [],
"noEmit": true,
"forceConsistentCasingInFileNames": true
},