fomatting

This commit is contained in:
Ivan Fernandes
2018-12-02 02:10:27 -02:00
parent 374b24ef87
commit 55dc8ebd80
2 changed files with 7 additions and 9 deletions
+3 -4
View File
@@ -1,4 +1,4 @@
// Type definitions for passport-bnet 2.0.0
// Type definitions for passport-bnet 2.0.
// Project: https://github.com/Blizzard/passport-bnet#readme
// Definitions by: Ivan Fernandes <https://github.com/ivan94>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
@@ -12,7 +12,6 @@ declare class BnetStrategy extends OAuth2Strategy {
}
declare namespace BnetStrategy {
interface _BaseBnetOptions {
region?: string;
@@ -20,7 +19,7 @@ declare namespace BnetStrategy {
customHeaders?: object;
authorizationURL?: string;
tokenURL?: string;
scope?: string;
scope?: string;
clientID: string;
clientSecret: string;
callbackURL?: string;
@@ -40,4 +39,4 @@ declare namespace BnetStrategy {
const Strategy: typeof BnetStrategy;
}
export = BnetStrategy
export = BnetStrategy;
+4 -5
View File
@@ -1,9 +1,8 @@
//Based on passport-oauth2/passport-oauth2-tests.ts
// Based on passport-oauth2/passport-oauth2-tests.ts
import BnetStrategy = require("passport-bnet");
import { Strategy, StrategyOptions, StrategyOptionsWithRequest } from "passport-bnet";
import { Strategy as OAuth2Strategy } from "passport-oauth2";
import { VerifyCallback } from "passport-oauth2";
import { Strategy as OAuth2Strategy, VerifyCallback } from "passport-oauth2";
import { Request } from "express";
const strategyOptions1: StrategyOptions = {
@@ -16,7 +15,7 @@ const strategyOptions1: StrategyOptions = {
scope: "email",
scopeSeparator: ' ',
customHeaders: {}
}
};
function verifyFunction1(_accessToken: string, _refreshToken: string, _profile: any, verifyCallback: VerifyCallback) {
verifyCallback(new Error('unimplemented'));
@@ -62,4 +61,4 @@ class MyStrategy extends BnetStrategy {
this._oauth2.get('http://www.example.com/profile', 'token', (err, result) => result);
this._oauth2.get('http://www.example.com/profile', 'token', (err, result, response) => response);
}
}
}