From a284f392fbd81cda9e8183bb46c4134817a18544 Mon Sep 17 00:00:00 2001 From: Valerie Rutsch Date: Sun, 6 Aug 2023 22:38:46 -0700 Subject: [PATCH] refactor(pencil) add correct union type --- lib/rules/unsafe-to-chain-command.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/rules/unsafe-to-chain-command.js b/lib/rules/unsafe-to-chain-command.js index 6c644f3e..ac2e13d3 100644 --- a/lib/rules/unsafe-to-chain-command.js +++ b/lib/rules/unsafe-to-chain-command.js @@ -125,7 +125,7 @@ const isRootCypress = (node) => { /** * @param {import('estree').Node} node - * @param {string[] | RegExp[]} additionalMethods + * @param {(string | RegExp)[]} additionalMethods */ const isActionUnsafeToChain = (node, additionalMethods = []) => { const unsafeActionsRegex = new RegExp([