File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ class PromiseWrapper {
2525 return new _Completer (new Completer ());
2626 }
2727
28- static setTimeout (fn, millis) {
28+ static setTimeout (Function fn, int millis) {
2929 new Timer (new Duration (milliseconds: millis), fn);
3030 }
3131}
Original file line number Diff line number Diff line change 1+ import { int } from 'facade/lang' ;
2+ import { List } from 'facade/collection' ;
13export var Promise = window . Promise ;
24
35export class PromiseWrapper {
@@ -9,7 +11,7 @@ export class PromiseWrapper {
911 return Promise . reject ( obj ) ;
1012 }
1113
12- static all ( promises ) :Promise {
14+ static all ( promises : List ) :Promise {
1315 if ( promises . length == 0 ) return Promise . resolve ( [ ] ) ;
1416 return Promise . all ( promises ) ;
1517 }
@@ -34,7 +36,7 @@ export class PromiseWrapper {
3436 } ;
3537 }
3638
37- static setTimeout ( fn , millis ) {
39+ static setTimeout ( fn : Function , millis : int ) {
3840 window . setTimeout ( fn , millis ) ;
3941 }
40- }
42+ }
You can’t perform that action at this time.
0 commit comments