Skip to content

Commit

Permalink
Use TypeScript in all README examples
Browse files Browse the repository at this point in the history
  • Loading branch information
wojtekmaj committed Jul 19, 2023
1 parent b56a180 commit 48215c7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ Conditions:
- Selected text: `"ello"`
- Key pressed: `i`

```js
function onKeyPress(event) {
```ts
function onKeyPress(event: React.KeyboardEvent<HTMLInputElement>): void {
const nextValue = predictInputValue(event); // "hi"
}
```
Expand Down

0 comments on commit 48215c7

Please sign in to comment.