-
-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
690 additions
and
220 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
/** | ||
* Returns an exception to be thrown when attempting to assign a non-array value to a select | ||
* in `multiple` mode. Note that `undefined` and `null` are still valid values to allow for | ||
* resetting the value. | ||
* @docs-private | ||
*/ | ||
export function getLySelectNonArrayValueError(): Error { | ||
return Error('Value must be an array in multiple-selection mode.'); | ||
} | ||
|
||
/** | ||
* Returns an exception to be thrown when assigning a non-function value to the comparator | ||
* used to determine if a value corresponds to an option. Note that whether the function | ||
* actually takes two values and returns a boolean is not checked. | ||
*/ | ||
export function getLySelectNonFunctionValueError(): Error { | ||
return Error('`compareWith` must be a function.'); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.