chore: Adding return types to Dart facades

Closes #758
This commit is contained in:
Kevin Moore
2015-02-23 11:44:59 -08:00
committed by Misko Hevery
parent d1f03e509b
commit fad25c2b10
3 changed files with 11 additions and 11 deletions

View File

@ -193,14 +193,14 @@ bool assertionsEnabled() {
// Can't be all uppercase as our transpiler would think it is a special directive...
class Json {
static parse(String s) => convert.JSON.decode(s);
static stringify(data) => convert.JSON.encode(data);
static String stringify(data) => convert.JSON.encode(data);
}
class DateWrapper {
static fromMillis(int ms) {
static DateTime fromMillis(int ms) {
return new DateTime.fromMillisecondsSinceEpoch(ms);
}
static now() {
static DateTime now() {
return new DateTime.now();
}
}