Logo
Explore Help
Sign In
iSharkFly-Docs/angular-docs-cn
1
0
Fork 0
You've already forked angular-docs-cn
Code Issues Pull Requests Actions Packages Projects Releases Wiki Activity
angular-docs-cn/modules/benchpress/src/measure_values.ts

16 lines
415 B
TypeScript
Raw Normal View History

refactor(core): move facades out of core This is part of ongoing work to make core platform-independent. BREAKING CHANGE All private exports from 'angular2/src/core/facade/{lang,collection,exception_handler}' should be replaced with 'angular2/src/facade/{lang,collection,exception_handler}'.
2015-11-06 17:34:07 -08:00
import {Date, DateWrapper} from 'angular2/src/facade/lang';
import {Map} from 'angular2/src/facade/collection';
refactor(benchpress): convert src and test to typescript Fixes #2007
2015-05-27 14:57:54 -07:00
export class MeasureValues {
constructor(public runIndex: number, public timeStamp: Date,
chore(typings): remove StringMap This was a poorly typed attempt to mimic TypeScript's index signatures, which we can use instead. This eliminates a very strange type that we were exposing to users, but not re-exporting through our public API. Fixes #4483
2015-10-02 16:47:54 -07:00
public values: {[key: string]: any}) {}
refactor(benchpress): convert src and test to typescript Fixes #2007
2015-05-27 14:57:54 -07:00
toJson() {
return {
'timeStamp': DateWrapper.toJson(this.timeStamp),
'runIndex': this.runIndex,
'values': this.values
};
}
}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.23.8 Page: 69ms Template: 2ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API