microsoft / microsoft/TypeScript
`Array.prototype.at` docs use "code unit" instead of "item"
Dieses Issue hat noch niemand übernommen.
- Vorherrschende Sprache
- Go
- Sterne
- 111k
- Forks
- 14.3k
- Ø Merge
- 2 T. 4 Std.
- Gemergte PRs (30 T.)
- 132
Beschreibung
### Acknowledgement
- [x] I acknowledge that issues using this template may be closed without further explanation at the maintainer's discretion.
### Comment
The `@param` tag [here](https://github.com/microsoft/TypeScript/blob/b465fdbfe175304d9b977da137b2c178ae1091d3/src/lib/es2022.array.d.ts#L4) in the docs for `Array.prototype.at` uses the term "code unit" instead of the more appropriate term "item" or "element". It was presumably copied from the docs for `String.prototype.at` [here](https://github.com/microsoft/TypeScript/blob/main/src/lib/es2022.string.d.ts#L4). I'd make a PR but there was an explicit recommendation not to do that for typos.
Beitragsleitfaden
Erste Schritte
- Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
- Forke das Repository und arbeite in einem Branch.
- Öffne einen Pull Request, der die Issue-Nummer nennt.
Rechercherichtung
Beginne in src/lib/es2022.array.d.ts bei der @param-Dokumentation für Array.prototype.at und vergleiche sie anschließend mit src/lib/es2022.string.d.ts. Aktualisiere die Array-Dokumentation, sodass der passende Begriff für einen Array-Wert verwendet wird, und überprüfe, dass die Dokumentation der Deklarationsdatei konsistent bleibt.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- typescript
- Bereich
- documentation
- Issue-Typ
- Dokumentation
- Schwierigkeit
- 1/5
- Geschätzter Aufwand
- Unter einer Stunde
- Aktivitätsstatus
- Aktiv
- Klarheit
- Klar beschrieben
- Anfängerfreundlichkeit
- 91/100