UNPKG
@hx-midway/static-file
Version:
latest (1.0.0)
1.0.0
Midwayjs static-file alias 自动扫描,支持路径索引,允许 /path/index.html -> /path/
@hx-midway/static-file
/
dist
/
utils
/
file.d.ts
8 lines
(7 loc)
•
407 B
TypeScript
View Raw
1
2
3
4
5
6
7
8
/** * 获取指定目录及其子目录中所有的index.html文件路径 *
@param
rootPath 要搜索的根目录路径 *
@param
tplExt 模板文件后缀名,默认为.html *
@returns
Promise<Record<string, string>> 返回一个对象,键是目录路径,值是index.html的完整路径 */
export
declare
function
getIndexFiles
(
rootPath
:
string
,
tplExt
?:
string
):
Promise
<
Record
<
string
,
string
>>;