Skip to content

Updated src/ - Clean npm lint test#4

Merged
Frenzy-code merged 4 commits intomainfrom
Fix-fibRoute.ts-1
Aug 31, 2025
Merged

Updated src/ - Clean npm lint test#4
Frenzy-code merged 4 commits intomainfrom
Fix-fibRoute.ts-1

Conversation

@Frenzy-code
Copy link
Copy Markdown
Collaborator

xd lol the problem was with the wrapper

@Frenzy-code Frenzy-code changed the title Update fibRoute.ts Updated src/ - Clean npm lint test Aug 31, 2025
@Frenzy-code Frenzy-code merged commit 00c3095 into main Aug 31, 2025
1 check passed
@Frenzy-code
Copy link
Copy Markdown
Collaborator Author

I edited fibRoute.ts to handle edge cases and type handling.

@Frenzy-code
Copy link
Copy Markdown
Collaborator Author

It used to call fib() on non-numbers, now it handles that and returns 401 and 402 HTTP error code.

Comment thread src/fibRoute.ts
// Endpoint for querying the fibonacci numbers

const fibonacci = require("./fib");
import { fibonacci } from "./fib";
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good way of fixing the error of the import that made the lint run

Copy link
Copy Markdown
Owner

@nejail nejail left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall, the code looks good, and with the lint test it passes every test needed, should be merged to main!

@Frenzy-code
Copy link
Copy Markdown
Collaborator Author

Yotsuba Koiwai

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants