Skip to content

Commit 665ac6a

Browse files
type clean
1 parent 3a8547f commit 665ac6a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/cli/domain/clean.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,19 +5,19 @@ import path from 'path';
55

66
const getComponentsByDir = makeGetComponentsByDir();
77

8-
export function fetchList(dirPath: string, callback: Callback<string[]>) {
8+
export function fetchList(dirPath: string, callback: Callback<string[]>): void {
99
return getComponentsByDir(dirPath, (err, list) => {
1010
if (err) return (callback as any)(err);
1111
if (list.length === 0) return callback(null, []);
1212

1313
const toRemove = list.map(folder => path.join(folder, 'node_modules'));
14-
const folderExists = (folder, cb) =>
14+
const folderExists = (folder: string, cb: Callback<boolean>) =>
1515
fs.exists(folder, exists => cb(null, exists));
1616

1717
async.filterSeries(toRemove, folderExists, callback as any);
1818
});
1919
}
2020

21-
export function remove(list: string[], callback: Callback<string>) {
21+
export function remove(list: string[], callback: Callback<string>): void {
2222
return async.eachSeries(list, fs.remove, callback as any);
2323
}

0 commit comments

Comments
 (0)