dojo / dojo/widgets

Define invalid message object

Open
#1,614 5 comments 0 reactions 1 assignee Claimed by @samends View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.