microsoft / microsoft/TypeScript

`RegExp.lastIndex` has no doc comment in `lib.es5.d.ts`

Open
#38,595 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Bug Domain: lib.d.ts Help Wanted
Dominant language
Go
Stars
111k
Forks
14.3k
Avg merge
2d 4h
Merged PRs (30d)
132

Description

Search Terms

"lastIndex"

Suggestion

RegExp.lastIndex should have a doc comment - you can see it lacks one here: https://github.com/microsoft/TypeScript/blob/7fc456f2d70348725bbef92732b98a33c07f85ad/lib/lib.es5.d.ts#L944

MDN doc for the property can be found here.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Open lib.es5.d.ts around line 944 and compare the RegExp.lastIndex declaration with the MDN reference linked in the issue. Add the missing doc comment, then verify that the declaration contains the intended documentation.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, typescript
Domain
documentation
Issue type
Documentation
Difficulty
1/5
Estimated time
Under an hour
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.