Skip to content

Commit 94bd75e

Browse files
committed
feat: issue fixes
1 parent fca2e35 commit 94bd75e

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

types/wx/lib.wx.api.d.ts

+5-5
Original file line numberDiff line numberDiff line change
@@ -5033,10 +5033,10 @@ innerAudioContext.onError((res) => {
50335033
success?: StatSuccessCallback
50345034
}
50355035
interface StatSuccessCallbackResult {
5036-
/** [Stats](https://developers.weixin.qq.com/minigame/dev/api/file/Stats.html)|Object
5036+
/** [Stats](https://developers.weixin.qq.com/minigame/dev/api/file/Stats.html)|Array.<[Stats](https://developers.weixin.qq.com/minigame/dev/api/file/Stats.html)>
50375037
*
5038-
* 当 recursive 为 false 时,res.stats 是一个 Stats 对象。当 recursive 为 true 且 path 是一个目录的路径时,res.stats 是一个 Object,key 以 path 为根路径的相对路径,value 是该路径对应的 Stats 对象。 */
5039-
stats: Stats | IAnyObject
5038+
* 当 recursive 为 false 时,res.stats 是一个 Stats 对象。当 recursive 为 true 且 path 是一个目录的路径时,res.stats 是一个 Array,数组的每一项是一个对象,每个对象包含 path 和 stats。 */
5039+
stats: Stats | Stats[]
50405040
errMsg: string
50415041
}
50425042
/** 好友状态信息列表 */
@@ -7495,7 +7495,7 @@ console.log(stats)
74957495
*
74967496
* 最低基础库: `2.16.1` */
74977497
fstatSync(option: FstatSyncOption): Stats
7498-
/** [[Stats](https://developers.weixin.qq.com/minigame/dev/api/file/Stats.html)|Object FileSystemManager.statSync(string path, boolean recursive)](https://developers.weixin.qq.com/minigame/dev/api/file/FileSystemManager.statSync.html)
7498+
/** [[Stats](https://developers.weixin.qq.com/minigame/dev/api/file/Stats.html)|Array.<[Stats](https://developers.weixin.qq.com/minigame/dev/api/file/Stats.html)> FileSystemManager.statSync(string path, boolean recursive)](https://developers.weixin.qq.com/minigame/dev/api/file/FileSystemManager.statSync.html)
74997499
*
75007500
* [FileSystemManager.stat](https://developers.weixin.qq.com/minigame/dev/api/file/FileSystemManager.stat.html) 的同步版本 */
75017501
statSync(
@@ -7505,7 +7505,7 @@ console.log(stats)
75057505
*
75067506
* 最低基础库: `2.3.0` */
75077507
recursive?: boolean
7508-
): Stats | IAnyObject
7508+
): Stats | Stats[]
75097509
/** [[WriteResult](https://developers.weixin.qq.com/minigame/dev/api/file/WriteResult.html) FileSystemManager.writeSync(Object object)](https://developers.weixin.qq.com/minigame/dev/api/file/FileSystemManager.writeSync.html)
75107510
*
75117511
* 同步写入文件

0 commit comments

Comments
 (0)