UNPKG
@eolme/vma-router
Version:
latest (2.0.0-alpha.21)
2.0.0-alpha.21
2.0.0-alpha.20
2.0.0-alpha.19
2.0.0-alpha.18
2.0.0-alpha.17
2.0.0-alpha.16
2.0.0-alpha.15
2.0.0-alpha.14
2.0.0-alpha.13
2.0.0-alpha.12
2.0.0-alpha.11
2.0.0-alpha.10
2.0.0-alpha.9
2.0.0-alpha.8
2.0.0-alpha.7
2.0.0-alpha.6
2.0.0-alpha.5
2.0.0-alpha.4
2.0.0-alpha.3
2.0.0-alpha.2
2.0.0-alpha.1
1.1.0-beta.5
1.1.0-beta.4
1.1.0-beta.3
1.1.0-beta.2
1.1.0-beta.1
1.0.1
Router for VK Mini Apps
github.com/eolme/vma-router
eolme/vma-router
@eolme/vma-router
/
dist
/
hoc
/
withRouter.d.ts
7 lines
(6 loc)
•
249 B
TypeScript
View Raw
1
2
3
4
5
6
7
import
{
ComponentType
}
from
'react'
;
import
{
Route
}
from
'../entities/Route'
;
export
interface
RouterProps
{
route
:
Readonly
<
Route
>; }
export
declare
function
withRouter<T>(
Component
:
ComponentType
<
RouterProps
& T>):
ComponentType
<T>;