Skip to content

Commit

Permalink
Update dependabot's deps.
Browse files Browse the repository at this point in the history
  • Loading branch information
Sammy99jsp committed Sep 21, 2024
1 parent 9d8a84e commit 0dfd7ef
Show file tree
Hide file tree
Showing 3 changed files with 579 additions and 461 deletions.
27 changes: 27 additions & 0 deletions src/global.d.ts
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;
}
}
Loading

0 comments on commit 0dfd7ef

Please sign in to comment.