fix: enrich type definition of buildCompilerFromPool method#156
fix: enrich type definition of buildCompilerFromPool method#156Eomm merged 2 commits intofastify:mainfrom
Conversation
791e134 to
cc138b9
Compare
cc138b9 to
500b173
Compare
Eomm
left a comment
There was a problem hiding this comment.
The TS error is unrelated with this PR
@fastify/typescript do you have a quick fix for this?
I saw it is related to this:
typescript-eslint/typescript-eslint#3325
I would like to fix it before publishing
|
I have been reading through a set of issues regarding this false positive I think however using declare there might actually be the issue, telling the compiler that this function already exists in the code, while So my proposal here would be to convert the two signature definitions to just types. Follows commit (We can drop it if you disagree on this solution) |
Enriches type definition for buildCompilerFromPool method to better represent fastify/ajv-compiler features.
Checklist
npm run test && npm run benchmark --if-presentand the Code of conduct