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

docs(typescript): fix fastify/fastify#4241 #4247

Merged
merged 2 commits into from Sep 13, 2022
Merged

Conversation

mortifia
Copy link
Contributor

@mortifia mortifia commented Sep 2, 2022

add note in typescript doc to prevent ts(2349) warning

#4241

Checklist

add note in typescript doc to prevent ts(2349) warning 

fastify#4241
@github-actions github-actions bot added the documentation Improvements or additions to documentation label Sep 2, 2022
Copy link
Member

@mcollina mcollina left a comment

Choose a reason for hiding this comment

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

lgtm

@Eomm Eomm added the typescript TypeScript related label Sep 2, 2022
@Fdawgs Fdawgs changed the title fix fastify/fastify#4241 docs(typescript): fix fastify/fastify#4241 Sep 3, 2022
@@ -61,6 +61,9 @@ in a blank http Fastify server.
*Note: Set `target` property in `tsconfig.json` to `es2017` or greater to avoid
[FastifyDeprecation](https://github.com/fastify/fastify/issues/3284) warning.*

*Note 2: Set `moduleResolution` property in `tsconfig.json` to `Node` to avoid
Copy link
Member

Choose a reason for hiding this comment

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

We should provide a clearer condition to the user.

Avoid using "moduleResolution": "NodeNext" in tsconfig.json with "type": "module" in package.json. This combination is currently not supported by fastify typing system.

@github-actions github-actions bot removed the typescript TypeScript related label Sep 10, 2022
@Eomm Eomm added the typescript TypeScript related label Sep 10, 2022
Copy link
Member

@mcollina mcollina left a comment

Choose a reason for hiding this comment

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

lgtm

@github-actions
Copy link

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 14, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
documentation Improvements or additions to documentation typescript TypeScript related
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants