Skip to content

Conversation

gurgunday
Copy link
Member

@gurgunday gurgunday commented Sep 20, 2025

While reading the Fast API guidelines, seeing the fallback section made me have an incorrect understanding of the API, because fallback no longer exists in FastApiCallbackOptions.

I believe this functionality was removed, so this PR updates the guidelines accordingly.

@nodejs-github-bot
Copy link
Collaborator

Review requested:

  • @nodejs/tsc

@nodejs-github-bot nodejs-github-bot added the doc Issues and PRs related to the documentations. label Sep 20, 2025
Comment on lines +14 to +15
* Throwing errors is not available from within a fast API call. If you need to
throw, perform validation in JavaScript or only expose a slow API.
Copy link
Contributor

Choose a reason for hiding this comment

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

This isn't actually accurate either – it's possible to throw errors within fast API calls, as the API now provides access to the isolate.

I did try to include this under some wider proposed changes at #58999, although that never garnered much comment. If this PR does go through separately, then this wording will need updating.

Copy link
Member Author

@gurgunday gurgunday Sep 21, 2025

Choose a reason for hiding this comment

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

Yeah let's do your PR @Renegade334

@gurgunday gurgunday closed this Sep 21, 2025
@gurgunday gurgunday deleted the update-fast-api-docs branch September 21, 2025 10:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

doc Issues and PRs related to the documentations.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants