Define invalid message object
Open
discussion
low priority
small
- Dominant language
- TypeScript
- Stars
- 92
- Forks
- 63
- PR merge metrics
- No merged PRs in 30d
Description
**Enhancement**
Currently the interface for an invalid message object is neither defined nor exported. The invalid message object is part of the definition of `Validity` found at https://github.com/dojo/widgets/blob/master/src/form/middleware.ts#L4 however, more times than not, projects have to write their own interfaces for `{ valid: boolean, message: string }`. Perhaps we could define and export a new interface for this with the name `InvalidMessage`
Package Version: 7.0.3
Contributor guide
Assessment
This issue has not been assessed yet.