Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit7f8789c

Browse files
committed
fix typo bug
1 parent9999668 commit7f8789c

File tree

2 files changed

+9
-6
lines changed

2 files changed

+9
-6
lines changed

‎web-app/src/services/channel/index.ts

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@ interface ReceivedEvent {
77
}
88

99
classChannel{
10-
editorSend:(action:Action)=>void
11-
machineSend:(action:Action|string)=>void
1210
constructor(){
1311
// setup mock if browser only
1412
//@ts-ignore
@@ -21,9 +19,13 @@ class Channel {
2119
consteditor=acquireVsCodeApi()
2220

2321
this.editorSend=editor.postMessage
24-
this.machineSend=()=>{
25-
/* machineSend is set asynchronously in the router. see "setMachineSend" */
26-
}
22+
}
23+
24+
publicmachineSend=(action:Action|string)=>{
25+
/* implemented by `setMachineSend` in router on startup */
26+
}
27+
publiceditorSend=(action:Action)=>{
28+
/* */
2729
}
2830

2931
publicsetMachineSend=(send:any)=>{

‎web-app/src/services/state/machine.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ export const machine = Machine<CR.MachineContext, CR.MachineStateSchema, CR.Mach
7878
id:'tutorial',
7979
initial:'Initialize',
8080
on:{
81+
// track commands
8182
COMMAND_START:{
8283
actions:['commandStart'],
8384
},
@@ -94,7 +95,7 @@ export const machine = Machine<CR.MachineContext, CR.MachineStateSchema, CR.Mach
9495
states:{
9596
// TODO: move Initialize into New Tutorial setup
9697
Initialize:{
97-
onEntry:['initializeTutsorial'],
98+
onEntry:['initializeTutorial'],
9899
on:{
99100
TUTORIAL_CONFIGURED:'Summary',
100101
// TUTORIAL_CONFIG_ERROR: 'Start' // TODO: should handle error

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp