Skip to content

Commit

Permalink
modified fibRoute.ts to change require statement to import statement
Browse files Browse the repository at this point in the history
  • Loading branch information
mkhin24 committed Sep 1, 2024
1 parent 9598d49 commit 05a11b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/fibRoute.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Endpoint for querying the fibonacci numbers

const fibonacci = require("./fib");
import { fibonacci } from "./fib";

export default (req, res) => {
const { num } = req.params;

Check failure on line 6 in src/fibRoute.ts

View workflow job for this annotation

GitHub Actions / test

Unsafe assignment of an `any` value

Check failure on line 6 in src/fibRoute.ts

View workflow job for this annotation

GitHub Actions / test

Unsafe member access .params on an `any` value

Check failure on line 6 in src/fibRoute.ts

View workflow job for this annotation

GitHub Actions / test

Unsafe assignment of an `any` value

Check failure on line 6 in src/fibRoute.ts

View workflow job for this annotation

GitHub Actions / test

Unsafe member access .params on an `any` value
Expand Down

0 comments on commit 05a11b1

Please sign in to comment.