Skip to content

Commit

Permalink
chore: patch code comment
Browse files Browse the repository at this point in the history
  • Loading branch information
AxiosLeo committed May 22, 2022
1 parent d5c1872 commit 1865def
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 9 deletions.
6 changes: 3 additions & 3 deletions main.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -463,7 +463,7 @@ export namespace helper {
* sync files to target directory from source directory
* @param source
* @param target
* @param ext default value is = '*'
* @param ext default value is = '*', js|ts ...
* @param reback default value if true
*/
function _sync(source: string, target: string, ext?: string, reback?: boolean): Promise<void>;
Expand All @@ -472,7 +472,7 @@ export namespace helper {
* list files in some directory
* @param dir
* @param full
* @param ext
* @param ext .js|.ts
*/
function _list(dir: string, full?: boolean, ext?: string): Promise<string[]>;

Expand Down Expand Up @@ -520,7 +520,7 @@ export namespace helper {
/**
* search some files by extension
* @param dir
* @param ext
* @param ext js|ts
* @param recur
*/
function _search(dir: string, ext?: string, recur?: boolean): Promise<string[]>;
Expand Down
9 changes: 3 additions & 6 deletions src/helper/fs.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,9 +93,8 @@ async function _copy(source, target, recur = false) {

/**
* search files in the directory
* @example js|ts ...
* @param {*} dir
* @param {*} ext
* @param {*} ext js|ts ...
* @param {*} recur
* @returns
*/
Expand All @@ -122,10 +121,9 @@ async function _search(dir, ext = '*', recur = true) {

/**
* find files in the directory with deep one level
* @example .js|.ts
* @param {*} dir
* @param {*} full
* @param {*} ext
* @param {*} ext .js|.ts
* @returns
*/
async function _list(dir, full = false, ext = '*') {
Expand Down Expand Up @@ -191,10 +189,9 @@ async function _md5(filepath, charset = 'utf8') {

/**
* file system sync
* @example js|ts ...
* @param {*} source
* @param {*} target
* @param {*} ext
* @param {*} ext js|ts ...
* @param {*} reback
*/
async function _sync(source, target, ext = '*', reback = true) {
Expand Down

0 comments on commit 1865def

Please sign in to comment.