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 },