1.1.6 • Published 6 months ago
@types/express-wechat-access v1.1.6
Installation
npm install --save @types/express-wechat-access
Summary
This package contains type definitions for express-wechat-access (https://github.com/simmons8616/express-wechat-access).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/express-wechat-access.
index.d.ts
// Type definitions for express-wechat-access 1.1
// Project: https://github.com/simmons8616/express-wechat-access
// Definitions by: DefinitelyTyped <https://github.com/DefinitelyTyped>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.3
/// <reference types="node" />
import { Response, NextFunction } from 'express';
import * as http from 'http';
import { EventEmitter } from 'events';
type WeMiddleware = (req: any, res: Response | http.ServerResponse, next: NextFunction) => any;
declare function weAccessMiddleware(
options: {
accessTokenUrl?: string | undefined;
ticketUrl?: string | undefined;
appId: string;
appSecret: string;
https?: boolean | undefined;
},
errorHandler?: (e: any) => any
): WeMiddleware;
declare namespace weAccessMiddleware {
interface WeAccessMidOption {
accessTokenUrl?: string | undefined;
ticketUrl?: string | undefined;
appId: string;
appSecret: string;
https?: boolean | undefined;
}
interface WeAccessMiddleware extends WeMiddleware, EventEmitter, Function {}
}
export = weAccessMiddleware;
Additional Details
- Last updated: Thu, 23 Dec 2021 23:34:37 GMT
- Dependencies: @types/express, @types/node
- Global values: none
Credits
These definitions were written by DefinitelyTyped.