1.1.6 • Published 6 months ago

@types/express-wechat-access v1.1.6

Weekly downloads
3
License
MIT
Repository
github
Last release
6 months ago

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

Credits

These definitions were written by DefinitelyTyped.

1.1.6

6 months ago

1.1.5

7 months ago

1.1.4

8 months ago

1.1.3

2 years ago

1.1.2

3 years ago

1.1.1

5 years ago

1.1.0

6 years ago