(e = [...e, { event: "select", detail }])}
on:clear={() => (e = [...e, { event: "clear" }])}
/>
{JSON.stringify(e, null, 2)}
```
### Forwarded events
The following events are forwarded to the [svelte-search](https://github.com/metonym/svelte-search) component.
- on:type
- on:input
- on:change
- on:focus
- on:clear
- on:blur
- on:keydown
## TypeScript
Svelte version 3.31 or greater is required to use this component with TypeScript.
TypeScript definitions are located in the [types folder](./types).
## Changelog
[Changelog](CHANGELOG.md)
## License
[MIT](LICENSE)
[npm]: https://img.shields.io/npm/v/svelte-typeahead.svg?color=%23ff3e00&style=for-the-badge
[npm-url]: https://npmjs.com/package/svelte-typeahead