mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
* Revert "Express: improve type of `Request['params']` aka `req.params` (#37502)"
This reverts commit 9aa863ef23.
* Express: use generics for params, default to dictionary
* Lint
* Bump all dependants
* Spacing
* Bump dependants
* Bump dependants
* Bump dependants
* Bump dependants
* Bump dependants
* Bump dependants
* Bump dependants
* Bump dependants
* Bump dependants
* Bump dependants
* Bump dependants (via tests)
* Bump dependants
* Bump dependants (via tests)
* Bump dependants
* Simplify test
* Hoist imports
* Tidy test
* Add tests
* Add reasons
* Remove redundant params
* Add tests
* Format
* Remove redundant params
* Add tests
* Add JSDoc
* Improve comment
* Improve comment
35 lines
1.1 KiB
TypeScript
35 lines
1.1 KiB
TypeScript
// Type definitions for express-oauth-server 2.0
|
|
// Project: https://github.com/oauthjs/express-oauth-server#readme, https://github.com/seegno/express-oauth-server
|
|
// Definitions by: Arne Schubert <https://github.com/atd-schubert>
|
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
// TypeScript Version: 2.3
|
|
|
|
import * as express from 'express';
|
|
import * as OAuth2Server from 'oauth2-server';
|
|
|
|
declare class ExpressOAuthServer {
|
|
server: OAuth2Server;
|
|
|
|
constructor(options: OAuth2Server.ServerOptions);
|
|
|
|
authenticate(options?: OAuth2Server.AuthenticateOptions): (
|
|
request: express.Request,
|
|
response: express.Response,
|
|
next: express.NextFunction,
|
|
) => Promise<OAuth2Server.Token>;
|
|
|
|
authorize(options?: OAuth2Server.AuthorizeOptions): (
|
|
request: express.Request,
|
|
response: express.Response,
|
|
next: express.NextFunction,
|
|
) => Promise<OAuth2Server.AuthorizationCode>;
|
|
|
|
token(options?: OAuth2Server.TokenOptions): (
|
|
request: express.Request,
|
|
response: express.Response,
|
|
next: express.NextFunction,
|
|
) => Promise<OAuth2Server.Token>;
|
|
}
|
|
|
|
export = ExpressOAuthServer;
|