mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-06 07:47:04 +00:00
fomatting
This commit is contained in:
Vendored
+3
-4
@@ -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;
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user