refactor: update TypeScript definitions for custom JSX elements and clean up global declarations in emoji picker (#26985)
This commit is contained in:
13
web/types/jsx.d.ts
vendored
Normal file
13
web/types/jsx.d.ts
vendored
Normal file
@@ -0,0 +1,13 @@
|
||||
// TypeScript type definitions for custom JSX elements
|
||||
// Custom JSX elements for emoji-mart web components
|
||||
|
||||
import 'react'
|
||||
|
||||
declare module 'react' {
|
||||
namespace JSX {
|
||||
// eslint-disable-next-line ts/consistent-type-definitions
|
||||
interface IntrinsicElements {
|
||||
'em-emoji': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user