From 036acd9e69b15c9fdce08e3573369171efcc4ae6 Mon Sep 17 00:00:00 2001 From: markthree <1801982702@qq.com> Date: Sat, 7 May 2022 15:56:20 +0800 Subject: [PATCH] fix: add find array type --- packages/gogocode-core/types/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/gogocode-core/types/index.d.ts b/packages/gogocode-core/types/index.d.ts index 8e3c1571..b95c2f1e 100644 --- a/packages/gogocode-core/types/index.d.ts +++ b/packages/gogocode-core/types/index.d.ts @@ -65,7 +65,7 @@ declare module 'gogocode' { * @param selector 代码选择器,可以是代码也可以将代码中的部分内容挖空替换为通配符 * @param options */ - find(selector: Selector, options?: FindOption): GoGoAST; + find(selector: Selector | string[], options?: FindOption): GoGoAST; /** * 获取某个父节点 * @param level 自内向外第n层父元素,默认值 0