Skip to content

Commit

Permalink
2016-08-09 [ci skip] Version: 1.201608090009.1+3f6aa3f3f0705cfc6bfe59…
Browse files Browse the repository at this point in the history
…920d49e76c12023953
  • Loading branch information
basarat committed Aug 9, 2016
1 parent dc6d576 commit e436a86
Show file tree
Hide file tree
Showing 11 changed files with 381 additions and 78 deletions.
2 changes: 1 addition & 1 deletion TypeScript
Submodule TypeScript updated 30 files
+1 −1 .travis.yml
+110 −25 src/compiler/checker.ts
+2 −0 src/compiler/types.ts
+24 −0 src/lib/es2015.core.d.ts
+2 −2 tests/baselines/reference/controlFlowBinaryOrExpression.symbols
+1 −1 tests/baselines/reference/controlFlowBinaryOrExpression.types
+32 −0 tests/baselines/reference/controlFlowIfStatement.js
+38 −0 tests/baselines/reference/controlFlowIfStatement.symbols
+47 −0 tests/baselines/reference/controlFlowIfStatement.types
+184 −0 tests/baselines/reference/controlFlowInstanceof.js
+232 −0 tests/baselines/reference/controlFlowInstanceof.symbols
+256 −0 tests/baselines/reference/controlFlowInstanceof.types
+77 −0 tests/baselines/reference/discriminantPropertyCheck.errors.txt
+111 −0 tests/baselines/reference/discriminantPropertyCheck.js
+59 −0 tests/baselines/reference/discriminantsAndTypePredicates.js
+94 −0 tests/baselines/reference/discriminantsAndTypePredicates.symbols
+104 −0 tests/baselines/reference/discriminantsAndTypePredicates.types
+13 −0 tests/baselines/reference/emitCapturingThisInTupleDestructuring1.errors.txt
+11 −0 tests/baselines/reference/emitCapturingThisInTupleDestructuring1.js
+16 −0 tests/baselines/reference/emitCapturingThisInTupleDestructuring2.errors.txt
+23 −0 tests/baselines/reference/emitCapturingThisInTupleDestructuring2.js
+2 −2 tests/baselines/reference/stringLiteralTypesAsTags01.types
+2 −2 tests/baselines/reference/stringLiteralTypesAsTags02.types
+2 −2 tests/baselines/reference/stringLiteralTypesAsTags03.types
+99 −0 tests/cases/compiler/controlFlowInstanceof.ts
+69 −0 tests/cases/compiler/discriminantPropertyCheck.ts
+31 −0 tests/cases/compiler/discriminantsAndTypePredicates.ts
+4 −0 tests/cases/compiler/emitCapturingThisInTupleDestructuring1.ts
+10 −0 tests/cases/compiler/emitCapturingThisInTupleDestructuring2.ts
+16 −0 tests/cases/conformance/controlFlow/controlFlowIfStatement.ts
24 changes: 24 additions & 0 deletions bin/lib.es2015.core.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -359,6 +359,30 @@ interface ObjectConstructor {
defineProperty(o: any, propertyKey: PropertyKey, attributes: PropertyDescriptor): any;
}

interface ReadonlyArray<T> {
/**
* Returns the value of the first element in the array where predicate is true, and undefined
* otherwise.
* @param predicate find calls predicate once for each element of the array, in ascending
* order, until it finds one where predicate returns true. If such an element is found, find
* immediately returns that element value. Otherwise, find returns undefined.
* @param thisArg If provided, it will be used as the this value for each invocation of
* predicate. If it is not provided, undefined is used instead.
*/
find(predicate: (value: T, index: number, obj: ReadonlyArray<T>) => boolean, thisArg?: any): T | undefined;

/**
* Returns the index of the first element in the array where predicate is true, and undefined
* otherwise.
* @param predicate find calls predicate once for each element of the array, in ascending
* order, until it finds one where predicate returns true. If such an element is found,
* findIndex immediately returns that element index. Otherwise, findIndex returns -1.
* @param thisArg If provided, it will be used as the this value for each invocation of
* predicate. If it is not provided, undefined is used instead.
*/
findIndex(predicate: (value: T) => boolean, thisArg?: any): number;
}

interface RegExp {
/**
* Returns a string indicating the flags of the regular expression in question. This field is read-only.
Expand Down
24 changes: 24 additions & 0 deletions bin/lib.es6.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4470,6 +4470,30 @@ interface ObjectConstructor {
defineProperty(o: any, propertyKey: PropertyKey, attributes: PropertyDescriptor): any;
}

interface ReadonlyArray<T> {
/**
* Returns the value of the first element in the array where predicate is true, and undefined
* otherwise.
* @param predicate find calls predicate once for each element of the array, in ascending
* order, until it finds one where predicate returns true. If such an element is found, find
* immediately returns that element value. Otherwise, find returns undefined.
* @param thisArg If provided, it will be used as the this value for each invocation of
* predicate. If it is not provided, undefined is used instead.
*/
find(predicate: (value: T, index: number, obj: ReadonlyArray<T>) => boolean, thisArg?: any): T | undefined;

/**
* Returns the index of the first element in the array where predicate is true, and undefined
* otherwise.
* @param predicate find calls predicate once for each element of the array, in ascending
* order, until it finds one where predicate returns true. If such an element is found,
* findIndex immediately returns that element index. Otherwise, findIndex returns -1.
* @param thisArg If provided, it will be used as the this value for each invocation of
* predicate. If it is not provided, undefined is used instead.
*/
findIndex(predicate: (value: T) => boolean, thisArg?: any): number;
}

interface RegExp {
/**
* Returns a string indicating the flags of the regular expression in question. This field is read-only.
Expand Down
2 changes: 2 additions & 0 deletions bin/ntypescript.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1527,6 +1527,8 @@ declare namespace ts {
mapper?: TypeMapper;
referenced?: boolean;
containingType?: UnionOrIntersectionType;
hasCommonType?: boolean;
isDiscriminantProperty?: boolean;
resolvedExports?: SymbolTable;
exportsChecked?: boolean;
isDeclarationWithCollidingName?: boolean;
Expand Down
132 changes: 107 additions & 25 deletions bin/ntypescript.js

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions bin/typescript.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1527,6 +1527,8 @@ declare namespace ts {
mapper?: TypeMapper;
referenced?: boolean;
containingType?: UnionOrIntersectionType;
hasCommonType?: boolean;
isDiscriminantProperty?: boolean;
resolvedExports?: SymbolTable;
exportsChecked?: boolean;
isDeclarationWithCollidingName?: boolean;
Expand Down
132 changes: 107 additions & 25 deletions bin/typescript.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion kicktravis
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2016-08-08 [ci skip] Version: 1.201608080007.1+269b8285387f5a7fdf1a2d2aafa40e96a425576d
2016-08-09 [ci skip] Version: 1.201608090009.1+3f6aa3f3f0705cfc6bfe59920d49e76c12023953
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ntypescript",
"version": "1.201608080007.1+269b8285387f5a7fdf1a2d2aafa40e96a425576d",
"version": "1.201608090009.1+3f6aa3f3f0705cfc6bfe59920d49e76c12023953",
"description": "A nicer version of microsoft/typescript packaged and released for API developers",
"main": "./bin/ntypescript.js",
"bin": {
Expand Down
Loading

0 comments on commit e436a86

Please sign in to comment.