refactor(ChangeDetection): convert change detection tests to typescript

This commit is contained in:
Jeff Cross
2015-05-26 17:12:38 -07:00
parent 34cfc9f474
commit 9d90128463
29 changed files with 2009 additions and 2091 deletions

View File

@ -2,7 +2,7 @@ var _global: BrowserNodeGlobal = <any>(typeof window === 'undefined' ? global :
export {_global as global};
export var Type = Function;
export type Type = new (...args: any[]) => any;
export type Type = new (... args: any[]) => any;
export class BaseException extends Error {
message;
@ -116,7 +116,7 @@ export class StringWrapper {
}
static replaceAllMapped(s: string, from: RegExp, cb: Function): string {
return s.replace(from, function(...matches) {
return s.replace(from, function(... matches) {
// Remove offset & string from the result array
matches.splice(-2, 2);
// The callback receives match, p1, ..., pn