UNPKG
restframework-express
Version:
latest (1.4.0)
1.4.0
1.2.0
1.1.0
1.0.1
1.0.0
ES6新特性,使用class来定义API接口,集成认证,权限,序列化,版本,视图,频率,过滤等公共能,插拔式设计模式
restframework-express
/
authentications
/
index.d.ts
14 lines
(11 loc)
•
296 B
TypeScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import
{
Request
}
from
"express"
;
declare
interface
Authenticator
{
authenticate
(
req
:
Request
): [
any
,
any
] |
void
}
declare
class
BaseAuthentication
implements
Authenticator
{
authenticate
(
req
:
Request
): [
any
,
any
] |
void
}
module
.
exports
= {
Authenticator
,
BaseAuthentication
}