chore(select): update dispatched change event type (#1357)

Follow-up to #1355
This commit is contained in:
metonym 2022-06-18 12:26:46 -07:00 committed by GitHub
commit b4d0205080
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 9 additions and 9 deletions

View file

@ -3173,12 +3173,12 @@ None.
### Events
| Event name | Type | Detail |
| :--------- | :--------- | :------------------ |
| change | dispatched | <code>string</code> |
| input | forwarded | -- |
| focus | forwarded | -- |
| blur | forwarded | -- |
| Event name | Type | Detail |
| :--------- | :--------- | :-------------------------------- |
| change | dispatched | <code>string &#124; number</code> |
| input | forwarded | -- |
| focus | forwarded | -- |
| blur | forwarded | -- |
## `SelectItem`

View file

@ -10236,7 +10236,7 @@
}
],
"events": [
{ "type": "dispatched", "name": "change", "detail": "string" },
{ "type": "dispatched", "name": "change", "detail": "string | number" },
{ "type": "forwarded", "name": "input", "element": "select" },
{ "type": "forwarded", "name": "focus", "element": "select" },
{ "type": "forwarded", "name": "blur", "element": "select" }

View file

@ -1,6 +1,6 @@
<script>
/**
* @event {string} change
* @event {string | number} change
*/
/**

View file

@ -109,7 +109,7 @@ export interface SelectProps
export default class Select extends SvelteComponentTyped<
SelectProps,
{
change: CustomEvent<string>;
change: CustomEvent<string | number>;
input: WindowEventMap["input"];
focus: WindowEventMap["focus"];
blur: WindowEventMap["blur"];