Generate with dts-gen

This commit is contained in:
Walter Rumsby
2018-03-21 21:49:18 +13:00
parent 5a36ea31c3
commit 4c2186d54c
4 changed files with 9 additions and 11 deletions

View File

@@ -1,15 +1,15 @@
// Type definitions for mem-fs 1.1
// Project: https://github.com/SBoudrias/mem-fs
// Project: https://github.com/sboudrias/mem-fs#readme
// Definitions by: My Food Bag <https://github.com/MyFoodBag>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/// <reference types="node" />
import events = require('events');
import stream = require('stream');
import File = require('vinyl');
declare namespace FileSystem {
export function create(...args: any[]): create.Store;
export namespace create {
interface Store extends events.EventEmitter {
add: (file: File, content: string) => void;
each: (callback: (file: File, index: number) => void) => void;
@@ -17,7 +17,6 @@ declare namespace FileSystem {
stream: () => stream.Transform;
}
export function create(): Store;
const prototype: {
};
}
export = FileSystem;

View File

@@ -6,8 +6,8 @@
],
"noImplicitAny": true,
"noImplicitThis": true,
"strictNullChecks": true,
"strictFunctionTypes": true,
"strictNullChecks": true,
"baseUrl": "../",
"typeRoots": [
"../"
@@ -18,6 +18,6 @@
},
"files": [
"index.d.ts",
"test/index.ts"
"mem-fs-tests.ts"
]
}

View File

@@ -1,7 +1,6 @@
{
"extends": "dtslint/dt.json",
"rules": {
"export-just-namespace": false,
"strict-export-declare-modifiers": false
}
}