UNPKG
mocker-api
Version:
latest (3.0.2)
3.0.2
3.0.1
3.0.0
2.10.0
2.9.11
2.9.10
2.9.9
2.9.8
2.9.5
2.9.4
2.9.3
2.9.2
2.9.1
2.9.0
2.8.3
2.8.2
2.8.1
2.8.0
2.7.5
2.7.4
2.7.3
2.7.2
2.7.1
2.7.0
2.6.0
2.5.0
2.4.1
2.4.0
2.3.5
2.3.4
2.3.3
2.3.2
2.3.1
2.3.0
2.2.0
2.1.1
2.1.0
2.0.4
2.0.3
2.0.2
2.0.1
2.0.0
1.14.0
1.13.1
1.13.0
1.12.2
1.12.1
1.12.0
1.11.2
1.11.1
1.11.0
1.10.0
1.9.0
1.8.2
1.8.1
1.8.0
1.7.9
1.7.8
1.7.7
1.7.6
1.7.5
1.7.4
1.7.3
1.7.2
1.7.1
1.7.0
1.6.10
1.6.9
1.6.8
1.6.7
1.6.6
1.6.5
1.6.4
This is dev support mock RESTful API.
wangchujiang.com/mocker-api/
jaywcjlove/mocker-api
mocker-api
/
lib
/
utils.d.ts
3 lines
(2 loc)
•
212 B
TypeScript
View Raw
1
2
3
import
type
{
PathToRegexpOptions
,
ParseOptions
}
from
'path-to-regexp'
;
export
declare
function
pathMatch
(
options
:
PathToRegexpOptions
&
ParseOptions
):
(
path
:
string
) =>
(
pathname
:
string
,
params
?:
any
) =>
any
;