Created
September 1, 2020 10:02
-
-
Save leaysgur/bcb8fbd7918ec2d293135695c0cf883f to your computer and use it in GitHub Desktop.
Use nextjs Link component w/ Preact + TypeScript
This file contains hidden or 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
import type { VNode, JSX } from "preact"; | |
declare module "react" { | |
export = React; | |
export as namespace React; | |
declare namespace React { | |
type DetailedReactHTMLElement< | |
P extends JSX.HTMLAttributes<T>, | |
T extends HTMLElement | |
> = VNode<P>; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
typescript
as deps andtsc --init