fix(find): fix typos in exported functions (#27538)

This commit is contained in:
Ferdy Budhidharma
2018-07-30 10:47:27 -05:00
committed by Andy
parent 34dd46de38
commit 3d30be9059
2 changed files with 10 additions and 10 deletions

View File

@@ -16,9 +16,9 @@ find.file(regexPattern, rootDir, (dirs: string[]): void => { }).error(errorCb);
find.fileSync(rootDir); // $ExpectType string[]
find.fileSync(stringPattern, rootDir); // $ExpectType string[]
find.fileSync(regexPattern, rootDir); // $ExpectType string[]
find.eachFile(rootDir, singleStringCb).end(emptyCb).error(errorCb).end(emptyCb); // $ExpectType FindEachStream
find.eachFile(stringPattern, rootDir, singleStringCb).end(emptyCb).error(errorCb).end(emptyCb); // $ExpectType FindEachStream
find.eachFile(regexPattern, rootDir, singleStringCb).end(emptyCb).error(errorCb).end(emptyCb); // $ExpectType FindEachStream
find.eachfile(rootDir, singleStringCb).end(emptyCb).error(errorCb).end(emptyCb); // $ExpectType FindEachStream
find.eachfile(stringPattern, rootDir, singleStringCb).end(emptyCb).error(errorCb).end(emptyCb); // $ExpectType FindEachStream
find.eachfile(regexPattern, rootDir, singleStringCb).end(emptyCb).error(errorCb).end(emptyCb); // $ExpectType FindEachStream
find.dir(stringPattern, rootDir, (dirs: string[]): void => { }).error(emptyCb); // $ExpectType void
find.dir(stringPattern, rootDir, (dirs: string[]): void => { }).error(errorCb); // $ExpectType void
@@ -27,6 +27,6 @@ find.dir(rootDir, (dirs: string[]): void => { }).error(errorCb); // $ExpectType
find.dirSync(rootDir); // $ExpectType string[]
find.dirSync(stringPattern, rootDir); // $ExpectType string[]
find.dirSync(regexPattern, rootDir); // $ExpectType string[]
find.eachDir(rootDir, singleStringCb).end(emptyCb).error(errorCb).end(emptyCb); // $ExpectType FindEachStream
find.eachDir(stringPattern, rootDir, singleStringCb).end(emptyCb).error(errorCb).end(emptyCb); // $ExpectType FindEachStream
find.eachDir(regexPattern, rootDir, singleStringCb).end(emptyCb).error(errorCb).end(emptyCb); // $ExpectType FindEachStream
find.eachdir(rootDir, singleStringCb).end(emptyCb).error(errorCb).end(emptyCb); // $ExpectType FindEachStream
find.eachdir(stringPattern, rootDir, singleStringCb).end(emptyCb).error(errorCb).end(emptyCb); // $ExpectType FindEachStream
find.eachdir(regexPattern, rootDir, singleStringCb).end(emptyCb).error(errorCb).end(emptyCb); // $ExpectType FindEachStream

View File

@@ -45,7 +45,7 @@ export function file(pattern: string | RegExp, root: string, callback: (files: s
* @param root The root directory
* @param callback A callback that accepts each file separately
*/
export function eachFile(root: string, callback: (file: string) => void): FindEachStream;
export function eachfile(root: string, callback: (file: string) => void): FindEachStream;
/**
* Find all files that match a glob pattern in a given directory asynchronously.
@@ -53,7 +53,7 @@ export function eachFile(root: string, callback: (file: string) => void): FindEa
* @param root The root directory
* @param callback A callback that accepts an array of the found files
*/
export function eachFile(pattern: string | RegExp, root: string, callback: (file: string) => void): FindEachStream;
export function eachfile(pattern: string | RegExp, root: string, callback: (file: string) => void): FindEachStream;
/**
* Find all files in a given directory synchronously.
@@ -105,7 +105,7 @@ export function dirSync(pattern: string | RegExp, root: string): string[];
* @param root The root directory
* @param callback A callback that accepts each of the found directories separately
*/
export function eachDir(root: string, callback: (directory: string) => void): FindEachStream;
export function eachdir(root: string, callback: (directory: string) => void): FindEachStream;
/**
* Find all directories that match a glob pattern in a given directory asynchronously.
@@ -113,4 +113,4 @@ export function eachDir(root: string, callback: (directory: string) => void): Fi
* @param root The root directory
* @param callback A callback that accepts each of the found directories separately
*/
export function eachDir(pattern: string | RegExp, root: string, callback: (directory: string) => void): FindEachStream;
export function eachdir(pattern: string | RegExp, root: string, callback: (directory: string) => void): FindEachStream;