This repository has been archived by the owner on Mar 25, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 890
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
119 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,112 @@ | ||
// Type definitions for Glob 5.0.10 | ||
// Project: https://github.com/isaacs/node-glob | ||
// Definitions by: vvakame <https://github.com/vvakame/> | ||
// Definitions: https://github.com/borisyankov/DefinitelyTyped | ||
|
||
/// <reference path="../node/node.d.ts" /> | ||
/// <reference path="../minimatch/minimatch.d.ts" /> | ||
|
||
declare module "glob" { | ||
|
||
import events = require("events"); | ||
import fs = require('fs'); | ||
import minimatch = require("minimatch"); | ||
|
||
function G(pattern: string, cb: (err: Error, matches: string[]) => void): void; | ||
function G(pattern: string, options: G.IOptions, cb: (err: Error, matches: string[]) => void): void; | ||
|
||
module G { | ||
function sync(pattern: string, options?: IOptions): string[]; | ||
|
||
function hasMagic(pattern: string, options?: IOptions): boolean; | ||
|
||
var Glob: IGlobStatic; | ||
var GlobSync: IGlobSyncStatic; | ||
|
||
interface IOptions extends minimatch.IOptions { | ||
cwd?: string; | ||
root?: string; | ||
dot?: boolean; | ||
nomount?: boolean; | ||
mark?: boolean; | ||
nosort?: boolean; | ||
stat?: boolean; | ||
silent?: boolean; | ||
strict?: boolean; | ||
cache?: { [path: string]: any /* boolean | string | string[] */ }; | ||
statCache?: { [path: string]: fs.Stats }; | ||
symlinks?: any; | ||
sync?: boolean; | ||
nounique?: boolean; | ||
nonull?: boolean; | ||
debug?: boolean; | ||
nobrace?: boolean; | ||
noglobstar?: boolean; | ||
noext?: boolean; | ||
nocase?: boolean; | ||
matchBase?: any; | ||
nodir?: boolean; | ||
ignore?: any; /* string | string[] */ | ||
follow?: boolean; | ||
realpath?: boolean; | ||
nonegate?: boolean; | ||
nocomment?: boolean; | ||
|
||
/** Deprecated. */ | ||
globDebug?: boolean; | ||
} | ||
|
||
interface IGlobStatic extends events.EventEmitter { | ||
new (pattern: string, cb?: (err: Error, matches: string[]) => void): IGlob; | ||
new (pattern: string, options: IOptions, cb?: (err: Error, matches: string[]) => void): IGlob; | ||
prototype: IGlob; | ||
} | ||
|
||
interface IGlobSyncStatic { | ||
new (pattern: string, options?: IOptions): IGlobBase | ||
prototype: IGlobBase; | ||
} | ||
|
||
interface IGlobBase { | ||
minimatch: minimatch.IMinimatch; | ||
options: IOptions; | ||
aborted: boolean; | ||
cache: { [path: string]: any /* boolean | string | string[] */ }; | ||
statCache: { [path: string]: fs.Stats }; | ||
symlinks: { [path: string]: boolean }; | ||
realpathCache: { [path: string]: string }; | ||
found: string[]; | ||
} | ||
|
||
interface IGlob extends IGlobBase, events.EventEmitter { | ||
pause(): void; | ||
resume(): void; | ||
abort(): void; | ||
|
||
/** Deprecated. */ | ||
EOF: any; | ||
/** Deprecated. */ | ||
paused: boolean; | ||
/** Deprecated. */ | ||
maxDepth: number; | ||
/** Deprecated. */ | ||
maxLength: number; | ||
/** Deprecated. */ | ||
changedCwd: boolean; | ||
/** Deprecated. */ | ||
cwd: string; | ||
/** Deprecated. */ | ||
root: string; | ||
/** Deprecated. */ | ||
error: any; | ||
/** Deprecated. */ | ||
matches: string[]; | ||
/** Deprecated. */ | ||
log(...args: any[]): void; | ||
/** Deprecated. */ | ||
emitMatch(m: any): void; | ||
} | ||
} | ||
|
||
export = G; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
this change had the unexpected effect that
tslint path/to/non/existent/file
just silently does nothing. Previously, it would enter processFile which printed an error letting the user know that the path was wrong.
Unfortunately it's hard tell whether the empty output of tslint is due to your code being good, or because you gave a wrong path.
cc @ScottSWu