You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: lib/typescript-src/support/typescript/CONTRIBUTING.md
+2-2
Original file line number
Diff line number
Diff line change
@@ -9,7 +9,7 @@ Design changes will not be accepted at this time. If you have a design change pr
9
9
## Legal
10
10
You will need to complete a Contributor License Agreement (CLA). Briefly, this agreement testifies that you are granting us permission to use the submitted change according to the terms of the project's license, and that the work being submitted is under appropriate copyright.
11
11
12
-
Please submit a Contributor License Agreement (CLA) before submitting a pull request. Download the agreement ([Microsoft Contribution License Agreement.docx](https://www.codeplex.com/Download?ProjectName=typescript&DownloadId=822190) or [Microsoft Contribution License Agreement.pdf](https://www.codeplex.com/Download?ProjectName=typescript&DownloadId=921298)), sign, scan, and email it back to <[email protected]>. Be sure to include your github user name along with the agreement. Once we have received the signed CLA, we'll review the request. Please note that we're currently only accepting pull requests of bug fixes rather than new features.
12
+
Please submit a Contributor License Agreement (CLA) before submitting a pull request. You may visit https://cla.microsoft.com to sign digitally. Alternatively, download the agreement ([Microsoft Contribution License Agreement.docx](https://www.codeplex.com/Download?ProjectName=typescript&DownloadId=822190) or [Microsoft Contribution License Agreement.pdf](https://www.codeplex.com/Download?ProjectName=typescript&DownloadId=921298)), sign, scan, and email it back to <[email protected]>. Be sure to include your github user name along with the agreement. Once we have received the signed CLA, we'll review the request. Please note that we're currently only accepting pull requests of bug fixes rather than new features.
13
13
14
14
## Housekeeping
15
15
Your pull request should:
@@ -25,7 +25,7 @@ Your pull request should:
25
25
* Tests should include reasonable permutations of the target fix/change
26
26
* Include baseline changes with your change
27
27
* All changed code must have 100% code coverage
28
-
* Follow the code conventions descriped in [Coding guidlines](https://github.com/Microsoft/TypeScript/wiki/Coding-guidlines)
28
+
* Follow the code conventions descriped in [Coding guidelines](https://github.com/Microsoft/TypeScript/wiki/Coding-guidelines)
29
29
* To avoid line ending issues, set `autocrlf = input` and `whitespace = cr-at-eol` in your git configuration
* Prevents the modification of attributes of existing properties, and prevents the addition of new properties.
180
180
* @param o Object on which to lock the attributes.
181
181
*/
182
-
seal(o: any): any;
182
+
seal<T>(o: T): T;
183
183
184
184
/**
185
185
* Prevents the modification of existing property attributes and values, and prevents the addition of new properties.
186
186
* @param o Object on which to lock the attributes.
187
187
*/
188
-
freeze(o: any): any;
188
+
freeze<T>(o: T): T;
189
189
190
190
/**
191
191
* Prevents the addition of new properties to an object.
192
192
* @param o Object to make non-extensible.
193
193
*/
194
-
preventExtensions(o: any): any;
194
+
preventExtensions<T>(o: T): T;
195
195
196
196
/**
197
197
* Returns true if existing property attributes cannot be modified in an object and new properties cannot be added to the object.
@@ -425,6 +425,9 @@ interface String {
425
425
*/
426
426
substr(from: number,length?: number): string;
427
427
428
+
/** Returns the primitive value of the specified object. */
429
+
valueOf(): string;
430
+
428
431
[index: number]: string;
429
432
}
430
433
@@ -441,6 +444,8 @@ interface StringConstructor {
441
444
declarevarString: StringConstructor;
442
445
443
446
interfaceBoolean{
447
+
/** Returns the primitive value of the specified object. */
448
+
valueOf(): boolean;
444
449
}
445
450
446
451
interfaceBooleanConstructor{
@@ -475,6 +480,9 @@ interface Number {
475
480
* @param precision Number of significant digits. Must be in the range 1 - 21, inclusive.
476
481
*/
477
482
toPrecision(precision?: number): string;
483
+
484
+
/** Returns the primitive value of the specified object. */
485
+
valueOf(): number;
478
486
}
479
487
480
488
interfaceNumberConstructor{
@@ -553,7 +561,7 @@ interface Math {
553
561
*/
554
562
atan(x: number): number;
555
563
/**
556
-
* Returns the angle (in radians) from the X axis to a point (y,x).
564
+
* Returns the angle (in radians) from the X axis to a point.
557
565
* @param y A numeric expression representing the cartesian y-coordinate.
558
566
* @param x A numeric expression representing the cartesian x-coordinate.
559
567
*/
@@ -830,7 +838,7 @@ interface RegExp {
830
838
*/
831
839
test(string: string): boolean;
832
840
833
-
/** Returns a copy of the text of the regular expression pattern. Read-only. The rgExp argument is a Regular expression object. It can be a variable name or a literal. */
841
+
/** Returns a copy of the text of the regular expression pattern. Read-only. The regExp argument is a Regular expression object. It can be a variable name or a literal. */
834
842
source: string;
835
843
836
844
/** Returns a Boolean value indicating the state of the global flag (g) used with a regular expression. Default is false. Read-only. */
0 commit comments