-
Notifications
You must be signed in to change notification settings - Fork 663
WIP: Publish ValidationCallbackData #32153
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
base: 26_1
Are you sure you want to change the base?
WIP: Publish ValidationCallbackData #32153
Conversation
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.
Pull request overview
This PR publishes the ValidationCallbackData type as a public, documented type with generic support. The key changes include adding JSDoc documentation to all properties of ValidationCallbackData, making it generic with a TValue type parameter, and updating both AsyncRule and CustomRule types to accept the generic type parameter. The Angular wrapper files have been updated to use the new ValidationCallbackData type instead of inline type definitions.
Key Changes
ValidationCallbackDatatype is now public with full JSDoc documentation and generic type supportAsyncRuleandCustomRuletypes now accept a genericTValueparameter for type-safe value validation- Angular wrapper components updated to import and use
ValidationCallbackDatatype
Reviewed changes
Copilot reviewed 18 out of 20 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| packages/devextreme/ts/dx.all.d.ts | Added generics to AsyncRule and CustomRule types, added JSDoc documentation to ValidationCallbackData |
| packages/devextreme/js/common.d.ts | Added generics to AsyncRule and CustomRule types, added JSDoc documentation to ValidationCallbackData, removed inline parameter documentation |
| packages/devextreme-angular/src/ui/validator/nested/*.ts | Updated validationCallback signature to use ValidationCallbackData type |
| packages/devextreme-angular/src/ui/tree-list/nested/*.ts | Updated validationCallback signature to use ValidationCallbackData type |
| packages/devextreme-angular/src/ui/scheduler/nested/*.ts | Updated validationCallback signature to use ValidationCallbackData type |
| packages/devextreme-angular/src/ui/form/nested/*.ts | Updated validationCallback signature to use ValidationCallbackData type |
| packages/devextreme-angular/src/ui/data-grid/nested/*.ts | Updated validationCallback signature to use ValidationCallbackData type |
| packages/devextreme-angular/src/ui/card-view/nested/*.ts | Updated validationCallback signature to use ValidationCallbackData type |
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.
Pull request overview
Copilot reviewed 30 out of 32 changed files in this pull request and generated no new comments.
No description provided.