# @types/express-wechat-access

> TypeScript definitions for express-wechat-access

Latest version **1.1.6** (published 2023-11-07) · MIT license · 0 weekly downloads

## Install

```sh
npm install @types/express-wechat-access
pnpm add @types/express-wechat-access
yarn add @types/express-wechat-access
bun add @types/express-wechat-access
```

## Health

**Score 45/100 (D)** — status: abandoned.

Positive: has types; no vulnerabilities; high maintenance score; popular repo; extremely popular.

Warnings: low downloads; no esm support.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 1.1.6 |
| Published | 2023-11-07 |
| First published | 2018-08-25 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 4.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51433 |
| Maintainers | types |

## Links

- npm: https://www.npmjs.com/package/@types/express-wechat-access
- Repository: https://github.com/DefinitelyTyped/DefinitelyTyped
- Homepage: https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/express-wechat-access
- npm.io page: https://npm.io/package/@types/express-wechat-access

## Dependencies (2)

- [@types/node](https://npm.io/package/@types/node.md) *
- [@types/express](https://npm.io/package/@types/express.md) *

## Recent versions

- 1.1.6 (latest) — 2023-11-07
- 1.1.3 (ts3.8) — 2021-12-23
- 1.1.2 (ts3.6) — 2021-07-08
- 1.1.1 (ts2.3) — 2019-08-19
- 1.1.0 (ts2.2) — 2018-08-25
- 1.1.5 — 2023-10-18
- 1.1.4 — 2023-09-23

## README

# 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](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/express-wechat-access/index.d.ts)
````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
 * Last updated: Tue, 07 Nov 2023 03:09:37 GMT
 * Dependencies: [@types/express](https://npmjs.com/package/@types/express), [@types/node](https://npmjs.com/package/@types/node)

# Credits
These definitions were written by .

---
_Source: https://npm.io/package/@types/express-wechat-access · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
