Export typedef for validity constraints
This commit is contained in:
parent
6cc5c43d82
commit
265ae85220
2 changed files with 5 additions and 5 deletions
|
@ -3,6 +3,6 @@
|
|||
"browser": "src/BetterSelect.js",
|
||||
"type": "module",
|
||||
"license": "MIT",
|
||||
"version": "1.5.1",
|
||||
"version": "1.5.2",
|
||||
"url": "https://darkwiiplayer.github.io/BetterSelect/"
|
||||
}
|
||||
|
|
|
@ -1,3 +1,7 @@
|
|||
/**
|
||||
* @typedef {"badInput"|"customError"|"patternMismatch"|"rangeOverflow"|"rangeUnderflow"|"stepMismatch"|"tooLong"|"tooShort"|"typeMismatch"|"valid"|"valueMissing"} ValidityConstraint
|
||||
*/
|
||||
|
||||
/**
|
||||
* @param {function} fn
|
||||
*/
|
||||
|
@ -446,10 +450,6 @@ export class BetterSelect extends HTMLElement {
|
|||
set disabled(disabled) { this.toggleAttribute("disabled", disabled) }
|
||||
get disabled() { return this.hasAttribute("disabled") }
|
||||
|
||||
/**
|
||||
* @typedef {"badInput"|"customError"|"patternMismatch"|"rangeOverflow"|"rangeUnderflow"|"stepMismatch"|"tooLong"|"tooShort"|"typeMismatch"|"valid"|"valueMissing"} ValidityConstraint
|
||||
*/
|
||||
|
||||
/**
|
||||
* @param {ValidityConstraint} _constraint
|
||||
*/
|
||||
|
|
Loading…
Reference in a new issue