Skip to content

Commit

Permalink
add type and remove allowJS
Browse files Browse the repository at this point in the history
  • Loading branch information
jbielick committed Aug 11, 2020
1 parent 180947f commit 28b190d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"watch": "npm run clean && tsc -w",
"build": "npm run clean && tsc",
"clean": "rm -rf lib/*",
"test": "nyc --cache ava src/__tests__/**/*",
"test": "npm run build && nyc --cache ava src/__tests__/**/*",
"test:unit": "nyc --cache ava src/__tests__/unit/*",
"test:integration": "nyc --cache ava src/__tests__/integration/*",
"test:watch": "npm run test -- -w",
Expand Down
2 changes: 1 addition & 1 deletion src/worker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,7 @@ export class Worker extends EventEmitter {
return this;
}

onerror(error) {
onerror(error: Error) {
console.error(error);
}

Expand Down
5 changes: 1 addition & 4 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
"moduleResolution": "node",
"esModuleInterop": true,
"allowSyntheticDefaultImports": true,
"allowJs": true,
"module": "CommonJS",
"target": "ES6",
"noImplicitAny": true,
Expand All @@ -16,7 +15,5 @@
"noFallthroughCasesInSwitch": true,
"noImplicitThis": true
},
"include": [
"src/**/*"
]
"include": ["src/**/*"]
}

0 comments on commit 28b190d

Please sign in to comment.