Skip to content

Commit

Permalink
Enable noImplicitThis in tsconfig (#115)
Browse files Browse the repository at this point in the history
Resolves #69
  • Loading branch information
JustinBeckwith authored and stephenplusplus committed Sep 5, 2018
1 parent 039c9a2 commit 22f8ff3
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
12 changes: 8 additions & 4 deletions packages/google-cloud-translate/test/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,12 @@ const fakeUtil = extend({}, util, {
});
const originalFakeUtil = extend(true, {}, fakeUtil);

function FakeService() {
this.calledWith_ = arguments;
class FakeService {
calledWith_: IArguments;
request?: Function;
constructor() {
this.calledWith_ = arguments;
}
}

describe('Translate', () => {
Expand Down Expand Up @@ -525,10 +529,10 @@ describe('Translate', () => {

describe('request', () => {
describe('OAuth mode', () => {
let request: r.Request;
let request: Function;

beforeEach(() => {
request = FakeService.prototype.request;
request = FakeService.prototype.request!;
});

afterEach(() => {
Expand Down
3 changes: 1 addition & 2 deletions packages/google-cloud-translate/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
"extends": "./node_modules/gts/tsconfig-google.json",
"compilerOptions": {
"rootDir": ".",
"outDir": "build",
"noImplicitThis": false
"outDir": "build"
},
"include": [
"src/*.ts",
Expand Down

0 comments on commit 22f8ff3

Please sign in to comment.