mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-03 22:37:03 +00:00
cosmiconfig options should be optional
This commit is contained in:
@@ -11,6 +11,8 @@ const explorer = cosmiconfig("yourModuleName", {
|
||||
ignoreEmptySearchPlaces: false,
|
||||
});
|
||||
|
||||
const explorer2 = cosmiconfig("yourModuleName");
|
||||
|
||||
Promise.all([
|
||||
explorer.search(path.join(__dirname)),
|
||||
explorer.searchSync(path.join(__dirname)),
|
||||
|
||||
Vendored
+2
-1
@@ -2,6 +2,7 @@
|
||||
// Project: https://github.com/davidtheclark/cosmiconfig
|
||||
// Definitions by: ozum <https://github.com/ozum>
|
||||
// szeck87 <https://github.com/szeck87>
|
||||
// saadq <https://github.com/saadq>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// TypeScript Version: 2.2
|
||||
|
||||
@@ -55,4 +56,4 @@ export interface ExplorerOptions {
|
||||
ignoreEmptySearchPlaces?: boolean;
|
||||
}
|
||||
|
||||
export default function cosmiconfig(moduleName: string, options: ExplorerOptions): Explorer;
|
||||
export default function cosmiconfig(moduleName: string, options?: ExplorerOptions): Explorer;
|
||||
|
||||
Reference in New Issue
Block a user