mirror of
https://github.com/fofolee/uTools-quickcommand.git
synced 2025-10-10 07:23:23 +08:00
为大部分命令添加输出结构结构化数据
This commit is contained in:
12
src/plugins/monaco/types/quickcommand.api.d.ts
vendored
12
src/plugins/monaco/types/quickcommand.api.d.ts
vendored
@@ -235,6 +235,18 @@ interface quickcommandApi {
|
||||
*/
|
||||
setTimeout(callback: () => void, ms);
|
||||
|
||||
/**
|
||||
* async 等待
|
||||
*
|
||||
* @param ms 等待的毫秒数
|
||||
* ```js
|
||||
* quickcommand.asyncSleep(2000).then(() => {
|
||||
* console.log('2000毫秒后执行')
|
||||
* })
|
||||
* ```
|
||||
*/
|
||||
asyncSleep(ms: number): Promise<number>;
|
||||
|
||||
/**
|
||||
* 将给定的html字符串解析为 DOM 对象,用于快速编写爬虫脚本
|
||||
*
|
||||
|
Reference in New Issue
Block a user