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(