mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-05-17 19:52:23 +08:00
fixup! fixup! fixup! fixup! fixup! fixup! fixup! chore(node): apply lint
This commit is contained in:
@@ -14,7 +14,7 @@ interface MyOptions {
|
||||
|
||||
// exports should work same as module.exports
|
||||
// assigning exports is an error in node, hence the cast
|
||||
(<any>global).exports = (grunt: IGrunt) => {
|
||||
(global as any).exports = (grunt: IGrunt) => {
|
||||
|
||||
// Project configuration.
|
||||
grunt.initConfig({
|
||||
|
||||
@@ -44,7 +44,7 @@ http.createServer((req, res) => {
|
||||
} else if (pLen === 2 && p[1].indexOf('code') === 0) {
|
||||
/** Github sends auth code so that access_token can be obtained */
|
||||
/** To obtain and parse code='...' from code?code='...' */
|
||||
const qsObj = <{ code: string }> qs.parse(p[1].split('?')[1]);
|
||||
const qsObj = qs.parse(p[1].split('?')[1]) as { code: string };
|
||||
|
||||
/** Obtaining access_token */
|
||||
oauth2.getOAuthAccessToken(
|
||||
|
||||
Reference in New Issue
Block a user