Skip to content

Commit

Permalink
Ensure tsconfig doesn't read js
Browse files Browse the repository at this point in the history
  • Loading branch information
devinmatte committed Jun 22, 2024
1 parent ae26ed2 commit e1d60e8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion modules/slowzones/SystemSlowZonesDetails.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export function SystemSlowZonesDetails({ showTitle = false }: SystemSlowZonesDet
query: { startDate, endDate },
} = useDelimitatedRoute();

const speedRestrictions = useSpeedRestrictionData({ lineId: line!, date: endDate! });
const speedRestrictions = useSpeedRestrictionData({ lineId: line, date: endDate! });

const startDateUTC = startDate ? dayjs.utc(startDate).startOf('day') : undefined;
const endDateUTC = endDate ? dayjs.utc(endDate).startOf('day') : undefined;
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,5 @@
]
},
"include": ["next-env.d.ts", "globals.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"],
"exclude": ["node_modules"]
"exclude": ["node_modules", "*.js"]
}

0 comments on commit e1d60e8

Please sign in to comment.