Skip to content

Commit 3e7b2a3

Browse files
committed
Merge pull request #8 from typescript-ruby/ts_version_update
Updated TS to v1.5.3
2 parents da66736 + fe1caaf commit 3e7b2a3

19 files changed

+99001
-66749
lines changed

CHANGES.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## v1.5.3.1 2015-09-02 11:28:00+0300
2+
* Updated Typescript to v1.5.3
3+
* Added support of different tsc.js path for 1.6 prerelease Typescript
4+
15
## v1.4.1.3 2015-06-29 21:37:00+0300
26
* Updated Typescript to v1.4.1
37
* Added option `use_external_tsc` (boolean). It could be helpful if you have locally installed Typescript node.js module and want to use it.
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
built
22
doc
3+
scripts
34
src
45
tests
56
Jakefile
67
.travis.yml
7-
scripts/
8+
.settings/

lib/typescript-src/support/typescript/CONTRIBUTING.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Design changes will not be accepted at this time. If you have a design change pr
99
## Legal
1010
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.
1111

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.
1313

1414
## Housekeeping
1515
Your pull request should:
@@ -25,7 +25,7 @@ Your pull request should:
2525
* Tests should include reasonable permutations of the target fix/change
2626
* Include baseline changes with your change
2727
* 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)
2929
* To avoid line ending issues, set `autocrlf = input` and `whitespace = cr-at-eol` in your git configuration
3030

3131
## Running the Tests

lib/typescript-src/support/typescript/README.md

+2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
[![Build Status](https://travis-ci.org/Microsoft/TypeScript.svg?branch=master)](https://travis-ci.org/Microsoft/TypeScript)
22
[![Issue Stats](http://issuestats.com/github/Microsoft/TypeScript/badge/pr)](http://issuestats.com/github/microsoft/typescript)
33
[![Issue Stats](http://issuestats.com/github/Microsoft/TypeScript/badge/issue)](http://issuestats.com/github/microsoft/typescript)
4+
[![npm version](https://badge.fury.io/js/typescript.svg)](http://badge.fury.io/js/typescript)
5+
[![Downloads](http://img.shields.io/npm/dm/TypeScript.svg)](https://npmjs.org/package/typescript)
46

57
# TypeScript
68

lib/typescript-src/support/typescript/bin/lib.core.d.ts

+27-5
Original file line numberDiff line numberDiff line change
@@ -179,19 +179,19 @@ interface ObjectConstructor {
179179
* Prevents the modification of attributes of existing properties, and prevents the addition of new properties.
180180
* @param o Object on which to lock the attributes.
181181
*/
182-
seal(o: any): any;
182+
seal<T>(o: T): T;
183183

184184
/**
185185
* Prevents the modification of existing property attributes and values, and prevents the addition of new properties.
186186
* @param o Object on which to lock the attributes.
187187
*/
188-
freeze(o: any): any;
188+
freeze<T>(o: T): T;
189189

190190
/**
191191
* Prevents the addition of new properties to an object.
192192
* @param o Object to make non-extensible.
193193
*/
194-
preventExtensions(o: any): any;
194+
preventExtensions<T>(o: T): T;
195195

196196
/**
197197
* 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 {
425425
*/
426426
substr(from: number, length?: number): string;
427427

428+
/** Returns the primitive value of the specified object. */
429+
valueOf(): string;
430+
428431
[index: number]: string;
429432
}
430433

@@ -441,6 +444,8 @@ interface StringConstructor {
441444
declare var String: StringConstructor;
442445

443446
interface Boolean {
447+
/** Returns the primitive value of the specified object. */
448+
valueOf(): boolean;
444449
}
445450

446451
interface BooleanConstructor {
@@ -475,6 +480,9 @@ interface Number {
475480
* @param precision Number of significant digits. Must be in the range 1 - 21, inclusive.
476481
*/
477482
toPrecision(precision?: number): string;
483+
484+
/** Returns the primitive value of the specified object. */
485+
valueOf(): number;
478486
}
479487

480488
interface NumberConstructor {
@@ -553,7 +561,7 @@ interface Math {
553561
*/
554562
atan(x: number): number;
555563
/**
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.
557565
* @param y A numeric expression representing the cartesian y-coordinate.
558566
* @param x A numeric expression representing the cartesian x-coordinate.
559567
*/
@@ -830,7 +838,7 @@ interface RegExp {
830838
*/
831839
test(string: string): boolean;
832840

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. */
834842
source: string;
835843

836844
/** Returns a Boolean value indicating the state of the global flag (g) used with a regular expression. Default is false. Read-only. */
@@ -1162,3 +1170,17 @@ interface ArrayConstructor {
11621170
}
11631171

11641172
declare var Array: ArrayConstructor;
1173+
1174+
interface TypedPropertyDescriptor<T> {
1175+
enumerable?: boolean;
1176+
configurable?: boolean;
1177+
writable?: boolean;
1178+
value?: T;
1179+
get?: () => T;
1180+
set?: (value: T) => void;
1181+
}
1182+
1183+
declare type ClassDecorator = <TFunction extends Function>(target: TFunction) => TFunction | void;
1184+
declare type PropertyDecorator = (target: Object, propertyKey: string | symbol) => void;
1185+
declare type MethodDecorator = <T>(target: Object, propertyKey: string | symbol, descriptor: TypedPropertyDescriptor<T>) => TypedPropertyDescriptor<T> | void;
1186+
declare type ParameterDecorator = (target: Object, propertyKey: string | symbol, parameterIndex: number) => void;

0 commit comments

Comments
 (0)