Skip to content

Commit db172f4

Browse files
DavertMikclaude
andcommitted
fix(CDPBrowser): jsdoc-parseable return type for _selectionDescriptor
Classic jsdoc cannot parse TS optional-property syntax in type expressions; npm run def failed, breaking the Typings workflow and the runner suite's definition test. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
1 parent 790d569 commit db172f4

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

docs/helpers/CDPBrowser.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -252,6 +252,8 @@ Builds the `{index, strict}` element-selection descriptor from the current step'
252252
disables strict mode for that step; otherwise `exact`/`strictMode` per-step options
253253
override `options.strict` to enable or cancel strict mode.
254254

255+
Returns **([object][3] | null)** descriptor with optional `index` and `strict` keys, or `null` when neither applies.
256+
255257
### _textSource
256258

257259
Resolves the text to search `see`/`dontSee`/`waitForText` against, when no explicit `context`

lib/helper/CDPBrowser.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,7 @@ class CDPBrowser extends Helper {
335335
* disables strict mode for that step; otherwise `exact`/`strictMode` per-step options
336336
* override `options.strict` to enable or cancel strict mode.
337337
*
338-
* @returns {?{index?: number, strict?: true}} `null` when neither applies.
338+
* @returns {object|null} descriptor with optional `index` and `strict` keys, or `null` when neither applies.
339339
* @protected
340340
*/
341341
_selectionDescriptor() {

0 commit comments

Comments
 (0)