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

Commit82d22a4

Browse files
committed
cleanup router typings
1 parent1109c29 commit82d22a4

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

‎web-app/src/components/Router/index.tsx

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import*asReactfrom'react'
2-
import*asCRfrom'typings'
32
import{createMachine}from'../../services/state/machine'
43
import{useMachine}from'../../services/xstate-react'
54
importRoutefrom'./Route'
@@ -9,11 +8,6 @@ interface Props {
98
children:any
109
}
1110

12-
interfaceCloneElementProps{
13-
context:CR.MachineContext
14-
send(action:CR.Action):void
15-
}
16-
1711
declareletacquireVsCodeApi:any
1812

1913
consteditor=acquireVsCodeApi()
@@ -41,7 +35,7 @@ const useRouter = () => {
4135
}
4236
},[])
4337

44-
constRouter=({ children}:Props):React.ReactElement<CloneElementProps>|null=>{
38+
constRouter=({ children}:Props):React.ReactElement<any>|null=>{
4539
constchildArray=React.Children.toArray(children)
4640
for(constchildofchildArray){
4741
// match path

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp