Skip to content

Commit ead95b7

Browse files
Fix Documentations
1 parent 6a84715 commit ead95b7

File tree

3 files changed

+39
-18
lines changed

3 files changed

+39
-18
lines changed

lib/lib.es2015.core.d.ts

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ interface NumberConstructor {
5757
/**
5858
* Converts A string to an integer.
5959
* @param string A string to convert into a number.
60-
* @param radix A value between 2 and 36 that specifies the base of the number in numString.
60+
* @param radix A value between 2 and 36 that specifies the base of the number in `string`.
6161
* If this argument is not supplied, strings with a prefix of '0x' are considered hexadecimal.
6262
* All other strings are considered decimal.
6363
*/
@@ -159,25 +159,25 @@ interface String {
159159
anchor(name: string): string;
160160

161161
/**
162-
* Returns a `<big>` HTML element
162+
* Returns a `<big>` HTML element
163163
* @deprecated A legacy feature for browser compatibility
164164
*/
165165
big(): string;
166166

167167
/**
168-
* Returns a `<blink>` HTML element
168+
* Returns a `<blink>` HTML element
169169
* @deprecated A legacy feature for browser compatibility
170170
*/
171171
blink(): string;
172172

173173
/**
174-
* Returns a `<bold>` HTML element
174+
* Returns a `<bold>` HTML element
175175
* @deprecated A legacy feature for browser compatibility
176176
*/
177177
bold(): string;
178178

179179
/**
180-
* Returns a `<tt>` HTML element
180+
* Returns a `<tt>` HTML element
181181
* @deprecated A legacy feature for browser compatibility
182182
*/
183183
fixed(): string;
@@ -201,7 +201,7 @@ interface String {
201201
fontsize(size: string): string;
202202

203203
/**
204-
* Returns a `<i>` HTML element
204+
* Returns a `<i>` HTML element
205205
* @deprecated A legacy feature for browser compatibility
206206
*/
207207
italics(): string;
@@ -213,25 +213,25 @@ interface String {
213213
link(url: string): string;
214214

215215
/**
216-
* Returns a `<small>` HTML element
216+
* Returns a `<small>` HTML element
217217
* @deprecated A legacy feature for browser compatibility
218218
*/
219219
small(): string;
220220

221221
/**
222-
* Returns a `<strike>` HTML element
222+
* Returns a `<strike>` HTML element
223223
* @deprecated A legacy feature for browser compatibility
224224
*/
225225
strike(): string;
226226

227227
/**
228-
* Returns a `<sub>` HTML element
228+
* Returns a `<sub>` HTML element
229229
* @deprecated A legacy feature for browser compatibility
230230
*/
231231
sub(): string;
232232

233233
/**
234-
* Returns a `<sup>` HTML element
234+
* Returns a `<sup>` HTML element
235235
* @deprecated A legacy feature for browser compatibility
236236
*/
237237
sup(): string;

lib/lib.es2017.object.d.ts

Lines changed: 21 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,24 +6,40 @@ interface ObjectConstructor {
66
* @param o Object that contains the properties and methods. This can be an object that you created or an existing Document Object Model (DOM) object.
77
*/
88
values<T>(o: ArrayLike<T>): T[];
9-
values<K extends string | number | symbol, V>(o: Record<K, V>): V[];
9+
/**
10+
* Returns an array of values of the enumerable properties of an object
11+
* @param o Object that contains the properties and methods. This can be an object that you created or an existing Document Object Model (DOM) object.
12+
*/
13+
values<K extends PropertyKey, V>(o: Record<K, V>): V[];
14+
/**
15+
* Returns an array of values of the enumerable properties of an object
16+
* @param o Object that contains the properties and methods. This can be an object that you created or an existing Document Object Model (DOM) object.
17+
*/
1018
values(o: unknown): unknown[];
1119

1220
/**
1321
* Returns an array of key/values of the enumerable properties of an object
1422
* @param o Object that contains the properties and methods. This can be an object that you created or an existing Document Object Model (DOM) object.
1523
*/
1624
entries<T>(o: ArrayLike<T>): [string, T][];
17-
entries<K extends string | number | symbol, V>(o: Record<K, V>): [string, V][];
25+
/**
26+
* Returns an array of key/values of the enumerable properties of an object
27+
* @param o Object that contains the properties and methods. This can be an object that you created or an existing Document Object Model (DOM) object.
28+
*/
29+
entries<K extends PropertyKey, V>(o: Record<K, V>): [string, V][];
30+
/**
31+
* Returns an array of key/values of the enumerable properties of an object
32+
* @param o Object that contains the properties and methods. This can be an object that you created or an existing Document Object Model (DOM) object.
33+
*/
1834
entries<T>(o: T): [string, unknown][];
1935

2036
/**
2137
* Returns an object containing all own property descriptors of an object
2238
* @param o Object that contains the properties and methods. This can be an object that you created or an existing Document Object Model (DOM) object.
2339
*/
24-
getOwnPropertyDescriptors<T>(
25-
o: T
26-
): { [P in keyof T]: TypedPropertyDescriptor<T[P]> } & {
40+
getOwnPropertyDescriptors<T>(o: T): {
41+
[P in keyof T]: TypedPropertyDescriptor<T[P]>;
42+
} & {
2743
[x: string]: PropertyDescriptor;
2844
};
2945
}

lib/lib.es5.d.ts

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -163,13 +163,13 @@ interface ObjectConstructor {
163163
* Prevents the modification of existing property attributes and values, and prevents the addition of new properties.
164164
* @param o Object on which to lock the attributes.
165165
*/
166-
freeze<T>(a: T[]): readonly T[];
166+
freeze<T>(o: T[]): readonly T[];
167167

168168
/**
169169
* Prevents the modification of existing property attributes and values, and prevents the addition of new properties.
170170
* @param o Object on which to lock the attributes.
171171
*/
172-
freeze<T extends Function>(f: T): T;
172+
freeze<T extends Function>(o: T): T;
173173

174174
/**
175175
* Prevents the modification of existing property attributes and values, and prevents the addition of new properties.
@@ -212,9 +212,14 @@ interface CallableFunction extends Function {
212212
/**
213213
* Calls the function with the specified object as the this value and the elements of specified array as the arguments.
214214
* @param thisArg The object to be used as the this object.
215-
* @param args An array of argument values to be passed to the function.
216215
*/
217216
apply<T, R>(this: (this: T) => R, thisArg: T): R;
217+
218+
/**
219+
* Calls the function with the specified object as the this value and the elements of specified array as the arguments.
220+
* @param thisArg The object to be used as the this object.
221+
* @param args An array of argument values to be passed to the function.
222+
*/
218223
apply<T, A extends any[], R>(
219224
this: (this: T, ...args: A) => R,
220225
thisArg: T,

0 commit comments

Comments
 (0)