@@ -16,9 +16,9 @@ export var proxy: ClassDecorator = (t) => t;
1616
1717var _global : jasmine . GlobalPolluter = < any > ( typeof window === 'undefined' ? global : window ) ;
1818
19- export var afterEach = _global . afterEach ;
19+ export var afterEach : Function = _global . afterEach ;
2020
21- type SyncTestFn = ( ) => void ;
21+ export type SyncTestFn = ( ) => void ;
2222type AsyncTestFn = ( done : ( ) => void ) => void ;
2323type AnyTestFn = SyncTestFn | AsyncTestFn ;
2424
@@ -88,19 +88,19 @@ function _describe(jsmFn, ...args) {
8888 return suite ;
8989}
9090
91- export function describe ( ...args ) {
91+ export function describe ( ...args ) : void {
9292 return _describe ( jsmDescribe , ...args ) ;
9393}
9494
95- export function ddescribe ( ...args ) {
95+ export function ddescribe ( ...args ) : void {
9696 return _describe ( jsmDDescribe , ...args ) ;
9797}
9898
99- export function xdescribe ( ...args ) {
99+ export function xdescribe ( ...args ) : void {
100100 return _describe ( jsmXDescribe , ...args ) ;
101101}
102102
103- export function beforeEach ( fn : FunctionWithParamTokens | SyncTestFn ) {
103+ export function beforeEach ( fn : FunctionWithParamTokens | SyncTestFn ) : void {
104104 if ( runnerStack . length > 0 ) {
105105 // Inside a describe block, beforeEach() uses a BeforeEachRunner
106106 runnerStack [ runnerStack . length - 1 ] . beforeEach ( fn ) ;
@@ -122,7 +122,7 @@ export function beforeEach(fn: FunctionWithParamTokens | SyncTestFn) {
122122 * bind(SomeToken).toValue(myValue),
123123 * ]);
124124 */
125- export function beforeEachBindings ( fn ) {
125+ export function beforeEachBindings ( fn ) : void {
126126 jsmBeforeEach ( ( ) => {
127127 var bindings = fn ( ) ;
128128 if ( ! bindings ) return ;
@@ -131,7 +131,7 @@ export function beforeEachBindings(fn) {
131131}
132132
133133function _it ( jsmFn : Function , name : string , testFn : FunctionWithParamTokens | AnyTestFn ,
134- timeOut : number ) {
134+ timeOut : number ) : void {
135135 var runner = runnerStack [ runnerStack . length - 1 ] ;
136136
137137 if ( testFn instanceof FunctionWithParamTokens ) {
@@ -183,15 +183,15 @@ function _it(jsmFn: Function, name: string, testFn: FunctionWithParamTokens | An
183183 }
184184}
185185
186- export function it ( name , fn , timeOut = null ) {
186+ export function it ( name , fn , timeOut = null ) : void {
187187 return _it ( jsmIt , name , fn , timeOut ) ;
188188}
189189
190- export function xit ( name , fn , timeOut = null ) {
190+ export function xit ( name , fn , timeOut = null ) : void {
191191 return _it ( jsmXIt , name , fn , timeOut ) ;
192192}
193193
194- export function iit ( name , fn , timeOut = null ) {
194+ export function iit ( name , fn , timeOut = null ) : void {
195195 return _it ( jsmIIt , name , fn , timeOut ) ;
196196}
197197
0 commit comments