forked from angular/angular
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: update paths from modules/@angular to packages
- Loading branch information
Showing
53 changed files
with
232 additions
and
104 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
aio/content/examples/testing/ts/src/app/app.component.router.spec.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
/** | ||
* @license | ||
* Copyright Google Inc. All Rights Reserved. | ||
* | ||
* Use of this source code is governed by an MIT-style license that can be | ||
* found in the LICENSE file at https://angular.io/license | ||
*/ | ||
|
||
// This file intentionally left blank. It is used to load nothing in some cases. | ||
// Such as parse5/index is redirected here instead of loading into browser. | ||
|
||
export let __empty__: any; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
|
||
/** | ||
* Subset of lib.es2015.core.d.ts typings. | ||
* Angular should not require use of ES6 runtime but some API usages are already present. | ||
* See https://github.com/angular/angular/issues/5242 | ||
* TODO(alexeagle): remove methods below which may not be present in targeted browser | ||
*/ | ||
|
||
interface String { | ||
/** | ||
* Returns true if the sequence of elements of searchString converted to a String is the | ||
* same as the corresponding elements of this object (converted to a String) starting at | ||
* position. Otherwise returns false. | ||
*/ | ||
startsWith(searchString: string, position?: number): boolean; | ||
|
||
/** | ||
* Returns true if the sequence of elements of searchString converted to a String is the | ||
* same as the corresponding elements of this object (converted to a String) starting at | ||
* endPosition – length(this). Otherwise returns false. | ||
*/ | ||
endsWith(searchString: string, endPosition?: number): boolean; | ||
} | ||
|
||
interface Array<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: Array<T>) => boolean, thisArg?: any): T; | ||
/** | ||
* Returns the this object after filling the section identified by start and end with value | ||
* @param value value to fill array section with | ||
* @param start index to start filling the array at. If start is negative, it is treated as | ||
* length+start where length is the length of the array. | ||
* @param end index to stop filling the array at. If end is negative, it is treated as | ||
* length+end. | ||
*/ | ||
fill(value: T, start?: number, end?: number): T[]; | ||
} | ||
|
||
interface NumberConstructor { | ||
/** | ||
* Returns true if the value passed is an integer, false otherwise. | ||
* @param number A numeric value. | ||
*/ | ||
isInteger(number: number): boolean; | ||
} | ||
|
||
// Workaround https://github.com/Microsoft/TypeScript/issues/9193 | ||
interface PromiseConstructor { | ||
all<T>(values: (T|PromiseLike<T>)[]): Promise<T[]>; | ||
} | ||
|
||
interface Function { | ||
/** | ||
* Returns the name of the function. Function names are read-only and can not be changed. | ||
*/ | ||
readonly name: string; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
/** | ||
* Dummy typings for systemjs. | ||
*/ | ||
declare var System: any; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
{ | ||
"compilerOptions": { | ||
"baseUrl": ".", | ||
"declaration": true, | ||
"experimentalDecorators": true, | ||
"emitDecoratorMetadata": true, | ||
"module": "commonjs", | ||
"moduleResolution": "node", | ||
"outDir": "../dist/all/", | ||
"noImplicitAny": true, | ||
"noFallthroughCasesInSwitch": true, | ||
"paths": { | ||
"selenium-webdriver": ["../node_modules/@types/selenium-webdriver/index.d.ts"], | ||
"rxjs/*": ["../node_modules/rxjs/*"], | ||
"@angular/*": ["../dist/all/@angular/*"], | ||
"@angular/tsc-wrapped": ["../dist/tools/@angular/tsc-wrapped"], | ||
"@angular/tsc-wrapped/*": ["../dist/tools/@angular/tsc-wrapped/*"] | ||
}, | ||
"rootDir": ".", | ||
"inlineSourceMap": true, | ||
"lib": ["es5", "dom", "es2015.promise", "es2015.collection", "es2015.iterable"], | ||
"skipDefaultLibCheck": true, | ||
"skipLibCheck": true, | ||
"target": "es5", | ||
"types": ["angularjs"] | ||
}, | ||
"exclude": [ | ||
"angular1_router", | ||
"benchmarks/e2e_test/old", | ||
"benchmarks/src/old", | ||
"benchmarks/src/**/index_aot.ts", | ||
"benchmarks_external", | ||
"payload_tests", | ||
"rollup-test" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
/** | ||
* @license | ||
* Copyright Google Inc. All Rights Reserved. | ||
* | ||
* Use of this source code is governed by an MIT-style license that can be | ||
* found in the LICENSE file at https://angular.io/license | ||
*/ | ||
|
||
// This file contains all ambient imports needed to compile the modules/ source code | ||
|
||
/// <reference path="../node_modules/zone.js/dist/zone.js.d.ts" /> | ||
/// <reference path="../node_modules/@types/hammerjs/index.d.ts" /> | ||
/// <reference path="../node_modules/@types/jasmine/index.d.ts" /> | ||
/// <reference path="../node_modules/@types/node/index.d.ts" /> | ||
/// <reference path="../node_modules/@types/selenium-webdriver/index.d.ts" /> | ||
/// <reference path="./es6-subset.d.ts" /> | ||
/// <reference path="./system.d.ts" /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.