Skip to content

Commit

Permalink
fix: temporary fix for types/react
Browse files Browse the repository at this point in the history
My old solution of pinning types/react to 18.2.19 isn't the best. Better to update to the new version, and use a patch of code to fix the broken parts.

For reference, see creativetimofficial/material-tailwind#528
  • Loading branch information
BobDotCom committed Nov 1, 2024
1 parent 56be73c commit b624452
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,16 @@ import { SpeedInsights } from "@vercel/speed-insights/next"
import './globals.css'
import { NuqsAdapter } from 'nuqs/adapters/next/app'
import { type ReactNode } from 'react'
import React from 'react'

declare module 'react' {
interface HTMLAttributes<T> {
placeholder?: string
onPointerEnterCapture?: React.PointerEventHandler
onPointerLeaveCapture?: React.PointerEventHandler
crossOrigin?: string
}
}

// const inter = Inter({ subsets: ['latin'] })

Expand Down

1 comment on commit b624452

@vercel
Copy link

@vercel vercel bot commented on b624452 Nov 1, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.