UNPKG

restframework-express

Version:

ES6新特性,使用class来定义API接口,集成认证,权限,序列化,版本,视图,频率,过滤等公共能,插拔式设计模式

14 lines (11 loc) 296 B
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 }