mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-11-29 09:41:45 +00:00
lint
This commit is contained in:
Vendored
+4
-3
@@ -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;
|
||||
|
||||
@@ -7,11 +7,12 @@
|
||||
"noImplicitAny": true,
|
||||
"noImplicitThis": true,
|
||||
"strictNullChecks": true,
|
||||
"strictFunctionTypes": true,
|
||||
"baseUrl": "../",
|
||||
"typeRoots": [
|
||||
"../"
|
||||
],
|
||||
"types": ["node"],
|
||||
"types": [],
|
||||
"noEmit": true,
|
||||
"forceConsistentCasingInFileNames": true
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user