Diffs Performance Improvements (#5653)

Co-authored-by: Adam <2363879+adamdotdevin@users.noreply.github.com>
This commit is contained in:
Amadeus Demarzi 2025-12-17 05:33:46 -08:00 committed by GitHub
parent 5da1c0087b
commit 5c490c51ed
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
10 changed files with 305 additions and 260 deletions

View file

@ -1,12 +1,15 @@
import { DIFFS_TAG_NAME } from "@pierre/diffs"
/**
* TypeScript declaration for the <diffs-container> custom element.
* This tells TypeScript that <diffs-container> is a valid JSX element in SolidJS.
* Required for using the @pierre/diffs web component in .tsx files.
*/
declare module "solid-js" {
namespace JSX {
interface IntrinsicElements {
"diffs-container": HTMLAttributes<HTMLElement>
[DIFFS_TAG_NAME]: HTMLAttributes<HTMLElement>
}
}
}