From 4fe08fc9e66f6b95a96f059e64c8eb0e542b7ebf Mon Sep 17 00:00:00 2001 From: Kei Son Date: Wed, 18 Jan 2017 06:32:37 +0900 Subject: [PATCH] oauth2orize) Add more interfaces for exchanges (#14038) --- oauth2orize/index.d.ts | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/oauth2orize/index.d.ts b/oauth2orize/index.d.ts index b36272dee6..2c4b0a7601 100644 --- a/oauth2orize/index.d.ts +++ b/oauth2orize/index.d.ts @@ -62,17 +62,35 @@ export namespace exchange { function code(options: Options, issue: (client: any, code: string, redirectURI: string, issued: IssuedFunction) => void): MiddlewareFunction; function code(issue: (client: any, code: string, redirectURI: string, issued: IssuedFunction) => void): MiddlewareFunction; + // arity == 5; issue(client, scope, req.body, req.authInfo, issued); + function clientCredentials(options: Options, issue: (client: any, scope: string[], body: any, authInfo: any, issued: IssuedFunction) => void): MiddlewareFunction; + // arity == 4; issue(client, scope, req.body, issued); + function clientCredentials(options: Options, issue: (client: any, scope: string[], body: any, issued: IssuedFunction) => void): MiddlewareFunction; + // arity == 3; issue(client, scope, issued); function clientCredentials(options: Options, issue: (client: any, scope: string[], issued: IssuedFunction) => void): MiddlewareFunction; + // arity == 2; issue(client, issued); function clientCredentials(options: Options, issue: (client: any, issued: IssuedFunction) => void): MiddlewareFunction; function clientCredentials(issue: (client: any, scope: string[], issued: IssuedFunction) => void): MiddlewareFunction; function clientCredentials(issue: (client: any, issued: IssuedFunction) => void): MiddlewareFunction; + // arity == 7; issue(client, username, passwd, scope, req.body, req.authInfo, issued); + function password(options: Options, issue: (client: any, username: string, password: string, scope: string[], body: any, authInfo: any, issued: IssuedFunction) => void): MiddlewareFunction; + // arity == 6; issue(client, username, passwd, scope, req.body, issued); + function password(options: Options, issue: (client: any, username: string, password: string, scope: string[], body: any, issued: IssuedFunction) => void): MiddlewareFunction; + // arity == 5; issue(client, username, passwd, scope, issued); function password(options: Options, issue: (client: any, username: string, password: string, scope: string[], issued: IssuedFunction) => void): MiddlewareFunction; + // arity == 4; issue(client, username, passwd, issued); function password(options: Options, issue: (client: any, username: string, password: string, issued: IssuedFunction) => void): MiddlewareFunction; function password(issue: (client: any, username: string, password: string, scope: string[], issued: IssuedFunction) => void): MiddlewareFunction; function password(issue: (client: any, username: string, password: string, issued: IssuedFunction) => void): MiddlewareFunction; + // arity == 6; issue(client, refreshToken, scope, req.body, req.authInfo, issued); + function refreshToken(options: Options, issue: (client: any, refreshToken: string, scope: string[], body: any, authInfo: any, issued: IssuedFunction) => void): MiddlewareFunction; + // arity == 5; issue(client, refreshToken, scope, req.body, issued); + function refreshToken(options: Options, issue: (client: any, refreshToken: string, scope: string[], body: any, issued: IssuedFunction) => void): MiddlewareFunction; + // arity == 4; issue(client, refreshToken, scope, issued); function refreshToken(options: Options, issue: (client: any, refreshToken: string, scope: string[], issued: IssuedFunction) => void): MiddlewareFunction; + // arity == 3; issue(client, refreshToken, issued); function refreshToken(options: Options, issue: (client: any, refreshToken: string, issued: IssuedFunction) => void): MiddlewareFunction; function refreshToken(issue: (client: any, refreshToken: string, scope: string[], issued: IssuedFunction) => void): MiddlewareFunction; function refreshToken(issue: (client: any, refreshToken: string, issued: IssuedFunction) => void): MiddlewareFunction;