update profile

This commit is contained in:
Renaud
2017-07-10 05:06:57 +02:00
parent 99a1d0b73d
commit 0ddc7720f1
+29 -58
View File
@@ -1,75 +1,46 @@
// Type definitions for passport-discord 0.1
// Project: https://github.com/nicholastay/passport-discord#readme
// Definitions by: My Self <https://github.com/me>
// Definitions by: Gonthier Renaud <https://github.com/kzay>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.2
/** Declaration file generated by dts-gen */
export = passport_discord;
import * as passport from 'passport';
import * as express from 'express';
declare class passport_discord {
constructor(options: any, verify: any);
export class Strategy implements passport.Strategy {
constructor(options: Strategy.StrategyOption, verify: (accessToken: string, refreshToken: string, profile: Strategy.Profile, done: (error: any, user?: any) => void) => void);
name: string;
authenticate: (req: express.Request, options?: Object) => void;
authorizationParams(options: any): any;
checkScope(scope: any, accessToken: any, cb: any): any;
parseErrorResponse(body: any, status: any): any;
tokenParams(options: any): any;
userProfile(accessToken: any, done: any): any;
static Strategy: any;
}
declare namespace passport_discord {
namespace prototype {
function authenticate(req: any, options: any): any;
function authorizationParams(options: any): any;
function checkScope(scope: any, accessToken: any, cb: any): any;
function parseErrorResponse(body: any, status: any): any;
function tokenParams(options: any): any;
function userProfile(accessToken: any, done: any): any;
namespace authenticate {
const prototype: {
};
}
namespace authorizationParams {
const prototype: {
};
}
namespace checkScope {
const prototype: {
};
}
namespace parseErrorResponse {
const prototype: {
};
}
namespace tokenParams {
const prototype: {
};
}
namespace userProfile {
const prototype: {
};
}
export namespace Strategy {
interface StrategyOption {
clientID: string;
clientSecret: string;
callbackURL: string;
scope: string[];
}
interface Profile extends passport.Profile {
profileUrl: string;
id: any;
username: string;
discriminator: string;
avatar: string;
verified: boolean;
email: string;
_raw: any;
_json: any;
}
}