-
-
Notifications
You must be signed in to change notification settings - Fork 198
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
Tags property doesn't exist in FastifySchema in TypeScript #664
Comments
cc @fastify/typescript |
@marko1010 I'm having the same problem. Have you been able to solve it? cc/ @mcollina |
@oitozero A quick fix: creating a global
This can fix the problem but is not a good solution. I think we need to wait for the developer to add the missing type to the type definition. |
The types exist, most of the issue related to project setup. |
oh you are right, the type can be found at Line 34 in c8d675d
So the cause of this PR is the extra type shipped with this package is not recognized by the typescript. It does sound like a project setup problem. |
@marko1010, @oitozero Hope it helps someone Source link need import library to file |
Prerequisites
Fastify version
4.5.3
Plugin version
7.5.1
Node.js version
14.7.3
Operating system
Windows
Operating system version (i.e. 20.04, 11.3, 10)
10
Description
When trying to add 'tags' property to Fastify schema, TypeScript complains with the following error:
Steps to Reproduce
Expected Behavior
No response
The text was updated successfully, but these errors were encountered: