-
Notifications
You must be signed in to change notification settings - Fork 50
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
1 parent
9d8a84e
commit 0dfd7ef
Showing
3 changed files
with
579 additions
and
461 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,27 @@ | ||
// | ||
// There's some really weird interaction with @types/react and older libraries | ||
// using ForwardRef or something, idk. | ||
// | ||
// This peace of type gaslightery is necessary in order for tsc to actually | ||
// compile our <Button> elements from @geist-ui. | ||
// | ||
// See more here: | ||
// https://github.com/DefinitelyTyped/DefinitelyTyped/discussions/69006#discussioncomment-8874434 | ||
// | ||
|
||
import "react"; | ||
|
||
declare module "react" { | ||
interface HTMLAttributes<T> { | ||
onPointerEnterCapture?: (e: React.PointerEvent<T>) => void; | ||
onPointerLeaveCapture?: (e: React.PointerEvent<T>) => void; | ||
placeholder?: string; | ||
crossOrigin?: string; | ||
} | ||
interface RefAttributes<T> { | ||
onPointerEnterCapture?: (e: React.PointerEvent<T>) => void; | ||
onPointerLeaveCapture?: (e: React.PointerEvent<T>) => void; | ||
placeholder?: string; | ||
crossOrigin?: string; | ||
} | ||
} |
Oops, something went wrong.