-
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
feat(framework): Expose Workflow
resource type in public API
#6983
feat(framework): Expose Workflow
resource type in public API
#6983
Conversation
✅ Deploy Preview for novu-stg-vite-dashboard-poc ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
commit: |
* @property `trigger` - The function to trigger the workflow. | ||
* @property `discover` - The function to discover the workflow definition. | ||
*/ | ||
export type Workflow<T_Payload = never> = { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is never a case where T_Payload
is inferrable without access to the payloadSchema
, so we make it as such. This prevents using an inferred Workflow payload type without a corresponding payloadSchema
.
What changed? Why was the change needed?
Workflow
resource type in public APIcloses #6954
Screenshots
Intelliense of exposed
Workflow
typeExpand for optional sections
Related enterprise PR
Special notes for your reviewer