Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add tscheck annotations, add JSDoc types to makeFaunaRequest #379

Merged
merged 1 commit into from
Oct 8, 2024

Conversation

echo-bravo-yahoo
Copy link
Contributor

Ticket(s): FE-###

Problem

Explain the context and why you're making that change. What is the problem you're trying to solve? In some cases there is not a problem and this can be thought of being the motivation for your change.

Solution

Describe the modifications you've done.

Result

What will change as a result of your pull request? Note that sometimes this section is unnecessary because it is self-explanatory based on the solution.

Testing

Describe the manual and automated tests you completed to verify the change is working as expected.

port,
scheme: protocol?.replace(/:$/, ""),
port: Number(port),
scheme: /** @type {('http'|'https')} */ (scheme),
Copy link
Member

@mwilde345 mwilde345 Oct 7, 2024

Choose a reason for hiding this comment

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

is this the best way to type it? Can we type the Client?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The v4 driver client has the type 'http' | 'https' | undefined, which seems pretty accurate to me. I don't think we want to loosen that type.

Copy link
Member

Choose a reason for hiding this comment

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

oh was mostly referring to the syntax/inline comment way of doing things

@mwilde345 mwilde345 merged commit f9a2bcd into v3 Oct 8, 2024
1 of 2 checks passed
@mwilde345 mwilde345 deleted the tscheck branch October 8, 2024 15:14
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