mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-05-29 00:51:29 +08:00
Generate with dts-gen
This commit is contained in:
13
types/mem-fs/index.d.ts
vendored
13
types/mem-fs/index.d.ts
vendored
@@ -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;
|
||||
|
||||
@@ -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"
|
||||
]
|
||||
}
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
{
|
||||
"extends": "dtslint/dt.json",
|
||||
"rules": {
|
||||
"export-just-namespace": false,
|
||||
"strict-export-declare-modifiers": false
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user