Skip to content

Commit

Permalink
no implicit any
Browse files Browse the repository at this point in the history
  • Loading branch information
collin committed Apr 29, 2020
1 parent 531e21d commit 97e3209
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 4 deletions.
6 changes: 3 additions & 3 deletions index.ts
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
import { parser } from "./parser";
import moment from "moment";

type Time = {
interface Time {
hour: number,
minute: number
}

type TimeRange = {
interface TimeRange {
start: Time,
end: Time
}

type MomentRange = {
interface MomentRange {
start: moment.Moment,
end: moment.Moment
}
Expand Down
6 changes: 6 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"main": "./index.ts",
"scripts": {
"test": "npm run build && node test.js",
"test:watch": "nodemon --watch index.ts --watch parser.ts --watch time-ranges.pegjs --exec \"npm run test\"",
"test:watch": "nodemon --watch tsconfig.json --watch index.ts --watch parser.ts --watch time-ranges.pegjs --exec \"npm run test\"",
"check": "tsc --project tsconfig.json --watch",
"build": "tsc --project tsconfig.json"
},
Expand All @@ -14,6 +14,7 @@
"license": "ISC",
"devDependencies": {
"@types/node": "^13.13.4",
"@types/pegjs": "^0.10.1",
"nodemon": "^2.0.3",
"typescript": "^3.8.3"
},
Expand Down
2 changes: 2 additions & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
"compilerOptions": {
"allowSyntheticDefaultImports": true,
"esModuleInterop": true,
"noImplicitAny": true,
"noImplicitReturns": true
},
"paths": [
"./index.ts"
Expand Down

0 comments on commit 97e3209

Please sign in to comment.