npm install --save @types/express-wechat-access
This package contains type definitions for express-wechat-access (https://github.com/simmons8616/express-wechat-access).
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/express-wechat-access.
/// <reference types="node" />
import { EventEmitter } from "events";
import { NextFunction, Response } from "express";
import * as http from "http";
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;
- Last updated: Tue, 07 Nov 2023 03:09:37 GMT
- Dependencies: @types/express, @types/node
These definitions were written by .