@@ -2,11 +2,10 @@ import {alertOpen, hintPositionSet, progressCompletePage} from '../../actions';
2
2
import getTestName from './test-run/testName' ;
3
3
import { TEST_COMPLETE , TEST_LOAD , TEST_RESULT , TEST_RUN } from './types' ;
4
4
5
- export function testLoad ( ) {
5
+ export function testLoad ( ) : Redux . ThunkAction < any , any , { } > {
6
6
return ( dispatch , getState ) :void => {
7
7
const { dir, pagePosition, tutorial, taskTests} = getState ( ) ;
8
8
const testFile = getTestName ( { tutorial, pagePosition} ) ;
9
-
10
9
dispatch ( {
11
10
type :TEST_LOAD , payload :{
12
11
dir,
@@ -18,7 +17,7 @@ export function testLoad() {
18
17
} ;
19
18
}
20
19
21
- export function testRun ( ) :ReduxThunk . ThunkInterface {
20
+ export function testRun ( ) :Redux . ThunkAction < any , any , { } > {
22
21
return ( dispatch , getState ) :void => {
23
22
// less than a second since the last test run, skip
24
23
const timeSinceLastTestRun = performance . now ( ) - getState ( ) . testRun . time ;
@@ -35,7 +34,8 @@ export function testRun(): ReduxThunk.ThunkInterface {
35
34
} ;
36
35
}
37
36
38
- export function testResult ( result :Test . Result ) :ReduxThunk . ThunkInterface {
37
+ export function testResult ( result :Test . Result ) :
38
+ Redux . ThunkAction < any , any , { } > {
39
39
return ( dispatch , getState ) :void => {
40
40
const { taskActions, progress, pagePosition} = getState ( ) ;
41
41
const filter :string = getTestFilter ( result ) ;
@@ -76,8 +76,9 @@ function getTestFilter(result: Test.Result): string {
76
76
}
77
77
}
78
78
79
- export function testComplete ( result :Test . Result ) {
80
- return ( dispatch , getState ) :void => {
79
+ export function testComplete ( result :Test . Result ) :
80
+ Redux . ThunkAction < any , any , { } > {
81
+ return ( dispatch ) :void => {
81
82
switch ( true ) {
82
83
// all complete
83
84
case result . completed :