From a2bdb7872f27e156491ffb360e0fa0eb95d8ccea Mon Sep 17 00:00:00 2001 From: Simon Schick Date: Wed, 26 Sep 2018 14:54:22 +0200 Subject: [PATCH] fixup! fixup! fixup! fixup! fixup! fixup! fixup! chore(node): apply lint --- types/grunt/grunt-tests.ts | 2 +- types/oauth/oauth-tests.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/types/grunt/grunt-tests.ts b/types/grunt/grunt-tests.ts index e84c286b6f..d4027da3fb 100644 --- a/types/grunt/grunt-tests.ts +++ b/types/grunt/grunt-tests.ts @@ -14,7 +14,7 @@ interface MyOptions { // exports should work same as module.exports // assigning exports is an error in node, hence the cast -(global).exports = (grunt: IGrunt) => { +(global as any).exports = (grunt: IGrunt) => { // Project configuration. grunt.initConfig({ diff --git a/types/oauth/oauth-tests.ts b/types/oauth/oauth-tests.ts index b617c60529..964aebeba2 100644 --- a/types/oauth/oauth-tests.ts +++ b/types/oauth/oauth-tests.ts @@ -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(