From 0d8be3243784c8a450227c9a23cd505d469dc6f6 Mon Sep 17 00:00:00 2001 From: bangbang93 Date: Fri, 11 Jan 2019 10:14:44 +0800 Subject: [PATCH] lint --- types/memorystream/index.d.ts | 7 ++++--- types/memorystream/tsconfig.json | 3 ++- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/types/memorystream/index.d.ts b/types/memorystream/index.d.ts index 444f7412bb..aa6e0a934e 100644 --- a/types/memorystream/index.d.ts +++ b/types/memorystream/index.d.ts @@ -2,12 +2,13 @@ // Project: https://github.com/JSBizon/node-memorystream // Definitions by: My Self // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +/// 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; \ No newline at end of file +export = MemoryStream; diff --git a/types/memorystream/tsconfig.json b/types/memorystream/tsconfig.json index 4971985966..200326520a 100644 --- a/types/memorystream/tsconfig.json +++ b/types/memorystream/tsconfig.json @@ -7,11 +7,12 @@ "noImplicitAny": true, "noImplicitThis": true, "strictNullChecks": true, + "strictFunctionTypes": true, "baseUrl": "../", "typeRoots": [ "../" ], - "types": ["node"], + "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true },