-
Notifications
You must be signed in to change notification settings - Fork 36
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
2 changed files
with
29 additions
and
0 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
export = precinct; | ||
|
||
/** | ||
* Finds the list of dependencies for the given file | ||
* | ||
* @param {String|Object} content - File's content or AST | ||
* @param {Object} [options] | ||
* @param {String} [options.type] - The type of content being passed in. Useful if you want to use a non-js detective | ||
* @return {String[]} | ||
*/ | ||
declare function precinct(content: string | any, options?: { | ||
type?: string; | ||
}): string[]; | ||
declare namespace precinct { | ||
/** | ||
* Returns the dependencies for the given file path | ||
* | ||
* @param {String} filename | ||
* @param {Object} [options] | ||
* @param {Boolean} [options.includeCore=true] - Whether or not to include core modules in the dependency list | ||
* @param {Object} [options.fileSystem=undefined] - An alternative fs implementation to use for reading the file path. | ||
* @return {String[]} | ||
*/ | ||
function paperwork(filename: string, options?: { | ||
includeCore?: boolean; | ||
fileSystem?: any; | ||
}): string[]; | ||
} |
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