Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions tsc/internal/bundled/libs/lib.es2015.core.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -399,9 +399,10 @@ interface RegExpConstructor {

interface String {
/**
* Returns a nonnegative integer Number less than 1114112 (0x110000) that is the code point
* value of the UTF-16 encoded code point starting at the string element at position pos in
* the String resulting from converting this object to a String.
* Returns a nonnegative integer Number less than 1114112 (0x110000) that is the Unicode
* code point value starting at the string element at position pos in the String resulting
* from converting this object to a String. Note that this is the code point starting at pos,
* not the pos-th code point of the string.
* If there is no element at that position, the result is undefined.
* If a valid UTF-16 surrogate pair does not begin at pos, the result is the code unit at pos.
*/
Expand Down
4 changes: 2 additions & 2 deletions tsc/internal/bundled/libs/lib.es5.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -416,8 +416,8 @@ interface String {
charAt(pos: number): string;

/**
* Returns the Unicode value of the character at the specified location, or NaN if the index is out of bounds.
* @param index The zero-based index of the desired character.
* Returns the UTF-16 code unit at the specified index, or NaN if the index is out of bounds.
* @param index The zero-based index of the desired code unit.
*/
charCodeAt(index: number): number;

Expand Down