Skip to content

Commit 1865def

Browse files
committed
chore: patch code comment
1 parent d5c1872 commit 1865def

2 files changed

Lines changed: 6 additions & 9 deletions

File tree

main.d.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -463,7 +463,7 @@ export namespace helper {
463463
* sync files to target directory from source directory
464464
* @param source
465465
* @param target
466-
* @param ext default value is = '*'
466+
* @param ext default value is = '*', js|ts ...
467467
* @param reback default value if true
468468
*/
469469
function _sync(source: string, target: string, ext?: string, reback?: boolean): Promise<void>;
@@ -472,7 +472,7 @@ export namespace helper {
472472
* list files in some directory
473473
* @param dir
474474
* @param full
475-
* @param ext
475+
* @param ext .js|.ts
476476
*/
477477
function _list(dir: string, full?: boolean, ext?: string): Promise<string[]>;
478478

@@ -520,7 +520,7 @@ export namespace helper {
520520
/**
521521
* search some files by extension
522522
* @param dir
523-
* @param ext
523+
* @param ext js|ts
524524
* @param recur
525525
*/
526526
function _search(dir: string, ext?: string, recur?: boolean): Promise<string[]>;

src/helper/fs.js

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -93,9 +93,8 @@ async function _copy(source, target, recur = false) {
9393

9494
/**
9595
* search files in the directory
96-
* @example js|ts ...
9796
* @param {*} dir
98-
* @param {*} ext
97+
* @param {*} ext js|ts ...
9998
* @param {*} recur
10099
* @returns
101100
*/
@@ -122,10 +121,9 @@ async function _search(dir, ext = '*', recur = true) {
122121

123122
/**
124123
* find files in the directory with deep one level
125-
* @example .js|.ts
126124
* @param {*} dir
127125
* @param {*} full
128-
* @param {*} ext
126+
* @param {*} ext .js|.ts
129127
* @returns
130128
*/
131129
async function _list(dir, full = false, ext = '*') {
@@ -191,10 +189,9 @@ async function _md5(filepath, charset = 'utf8') {
191189

192190
/**
193191
* file system sync
194-
* @example js|ts ...
195192
* @param {*} source
196193
* @param {*} target
197-
* @param {*} ext
194+
* @param {*} ext js|ts ...
198195
* @param {*} reback
199196
*/
200197
async function _sync(source, target, ext = '*', reback = true) {

0 commit comments

Comments
 (0)