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

Missing types? #14

Open
melroy89 opened this issue Apr 6, 2024 · 3 comments · May be fixed by #15
Open

Missing types? #14

melroy89 opened this issue Apr 6, 2024 · 3 comments · May be fixed by #15

Comments

@melroy89
Copy link

melroy89 commented Apr 6, 2024

During import of this plugin using TS and ESM: import * as piscinaPlugin from 'fastify-piscina', I get:

Could not find a declaration file for module 'fastify-piscina'. '../node_modules/fastify-piscina/esm-wrapper.mjs' implicitly has an 'any' type.
  There are types at '../node_modules/fastify-piscina/plugin.d.ts', but this result could not be resolved when respecting package.json "exports". The 'fastify-piscina' library may need to update its package.json or typings.ts(7016)
@meotimdihia
Copy link

meotimdihia commented Aug 1, 2024

import fastifyPiscina from "fastify-piscina" work for me.
But it doesn't register runTask and piscina for thefastify instance.

@melroy89
Copy link
Author

melroy89 commented Aug 3, 2024

Are you also using TS?

@meotimdihia
Copy link

@melroy89 yes

@almeidx almeidx linked a pull request Sep 19, 2024 that will close this issue
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 a pull request may close this issue.

2 participants