-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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 Feedback: Add informations about how to use Novu with NestJs #6552
Comments
We are working on nestjs handler. it will be released soon. |
@jainpawan21 very glad to hear this. we are currently considdering reusing the types of the handler to be used in our code structure. |
Hey @paulwer , thanks for raising the issue. Yes, we absolutely plan to have type-safe event triggering, and we also want to establish an idiomatic NestJS approach for dependency injection usage inside Workflows. You can view the draft developer interface in this PR - #6654, we would love to hear your feedback. We are providing 2 interfaces for NestJS usage of Novu Workflows:
|
very much aprecheated :) thanks |
@rifont we have the following error: Cannot find module '@novu/framework/nest' or its corresponding type declarations. |
Hi, I'm running into this error. node_modules/@novu/framework/dist/handler-By7gnvmo.d.ts:4102:59 - error TS2536: Type '"output"' cannot be used to index type '{ chat: { discord: { output: { readonly type: "object"; readonly properties: {}; readonly required: readonly []; readonly additionalProperties: true; }; }; getstream: { output: { readonly type: "object"; readonly properties: {}; readonly required: readonly []; readonly additionalProperties: true; }; }; ... 7 more .....'. 4102 }) => Awaitable<WithPassthrough<FromSchemaUnvalidated<(typeof providerSchemas)[T_StepType][K]['output']>>>; 4102 }) => Awaitable<WithPassthrough<FromSchemaUnvalidated<(typeof providerSchemas)[T_StepType][K]['output']>>>;" |
hey @Gbenga238 we released some Typescript performance improvements in Please try the new version and open a new issue if you continue to see |
Duplicates
Related page
https://docs.nestjs.com/middleware
Kind of issue
Missing information
Issue description
NestJs is like a superset of express, therefore a user can leverage the middleware implementation similar to express.
Afterwards you find some of our implemented code to use for your documentation:
the express middleware, using require, because we are using commonjs
Probably the right implementation
app.module.ts
Context 🔦
No response
The text was updated successfully, but these errors were encountered: