-
Notifications
You must be signed in to change notification settings - Fork 5.9k
Closed
Description
This is my first time with Deno, and I started writing a small library that I usually use in many projects I own.
The problem I have is Deno does not recognize some TypeScript types. This particular case is KeyboardEvent, and I can't find any hint of how I could solve this issue.
This is the error message I'm getting:
error: TS2304 [ERROR]: Cannot find name 'KeyboardEvent'.
const isEnter = ({ code, key, keyCode, type }: KeyboardEvent): boolean =>
~~~~~~~~~~~~~
at https://raw.githubusercontent.com/davegomez/is-keyboard-event/main/src/is-enter.ts:3:48I know the type exists because TypeScript compiles the file correctly.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels