We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parentf086a9c commit329e791Copy full SHA for 329e791
src/actions/onErrorPage.ts
@@ -2,7 +2,7 @@ import * as T from 'typings'
2
import{readFile}from'../services/node'
3
importloggerfrom'../services/logger'
4
5
-constonErrorPage=async(action:T.Action)=>{
+constonErrorPage=async(action:T.Action):void=>{
6
// Error middleware
7
if(action?.payload?.error?.type){
8
// load error markdown message
src/actions/onOpenLogs.ts
@@ -1,7 +1,7 @@
1
import*asTfrom'typings'
import{showOutput}from'../services/testRunner/output'
-exportconstonOpenLogs=async(action:T.Action)=>{
+exportconstonOpenLogs=async(action:T.Action):void=>{
constchannel=action.payload.channel
awaitshowOutput(channel)
}
src/actions/onRunReset.ts
@@ -11,7 +11,7 @@ type ResetAction = {
11
12
13
// reset to the start of the last test
14
-constonRunReset=async(action:ResetAction,context:Context)=>{
+constonRunReset=async(action:ResetAction,context:Context):void=>{
15
// reset to timeline
16
consttutorial:TT.Tutorial|null=context.tutorial.get()
17
constposition:T.Position=action.position ?action.position :context.position.get()
src/actions/onStartup.ts
@@ -11,7 +11,7 @@ const onStartup = async (
context:Context,
workspaceState:vscode.Memento,
send:(action:T.Action)=>Promise<void>,
-)=>{
+):void=>{
try{
// check if a workspace is open, otherwise nothing works
constnoActiveWorkspace=!WORKSPACE_ROOT.length
src/actions/onTest.ts
@@ -4,11 +4,11 @@ import * as vscode from 'vscode'
import{COMMANDS}from'../commands'
importContextfrom'../services/context/context'
-exportconstonTestPass=(action:T.Action,context:Context)=>{
+exportconstonTestPass=(action:T.Action,context:Context):void=>{
context.position.set({ ...action.payload.position,complete:true})
9
git.saveCommit('Save progress')
10
-exportconstonRunTest=(action?:T.Action)=>{
+exportconstonRunTest=(action?:T.Action):void=>{
vscode.commands.executeCommand(COMMANDS.RUN_TEST,action?.payload)
src/actions/onTutorialConfigContinue.ts
@@ -5,7 +5,7 @@ import Context from '../services/context/context'
importtutorialConfigfrom'./utils/tutorialConfig'
-constonTutorialConfigContinue=async(action:T.Action,context:Context,send:any)=>{
+constonTutorialConfigContinue=async(action:T.Action,context:Context,send:T.Send):void=>{
consttutorialContinue:TT.Tutorial|null=context.tutorial.get()
if(!tutorialContinue){
src/actions/onTutorialConfigNew.ts
@@ -8,7 +8,7 @@ import { version, compareVersions } from '../services/dependencies'
-constonTutorialConfigNew=async(action:T.Action,context:Context,send:any)=>{
+constonTutorialConfigNew=async(action:T.Action,context:Context,send:T.Send):void=>{
constdata:TT.Tutorial=action.payload.tutorial
@@ -82,7 +82,7 @@ const onTutorialConfigNew = async (action: T.Action, context: Context, send: any
82
if(satisfiedDependency!==true){
83
consterror:E.ErrorMessage=satisfiedDependency||{
84
type:'UnknownError',
85
-message:`Something went wrong comparing dependency for${name}`,
+message:`Something went wrong comparing dependency for${dep.name}`,
86
actions:[
87
{
88
label:'Try Again',
src/actions/onValidateSetup.ts
@@ -2,7 +2,7 @@ import * as E from 'typings/error'
import{version}from'../services/dependencies'
import{checkWorkspaceEmpty}from'../services/workspace'
-constonValidateSetup=async(send:any)=>{
+constonValidateSetup=async(send:T.Send):void=>{
// check workspace is selected
constisEmptyWorkspace=awaitcheckWorkspaceEmpty()
typings/index.d.ts
@@ -54,6 +54,8 @@ export interface Action {
54
meta?:any
55
56
57
+exporttypeSend=(action:Action)=>void
58
+
59
exportinterfaceEnvironment{
60
machineId:string
61
sessionId:string