@types/express-wechat-access
TypeScript icon, indicating that this package has built-in type declarations

1.1.6 • Public • Published

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

/// <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;

Additional Details

Credits

These definitions were written by .

Readme

Keywords

none

Package Sidebar

Install

npm i @types/express-wechat-access

Weekly Downloads

2

Version

1.1.6

License

MIT

Unpacked Size

4.42 kB

Total Files

5

Last publish

Collaborators

  • types