feat(share): SSR'd diffs

This commit is contained in:
Adam
2025-11-25 07:40:11 -06:00
parent 57bd47a446
commit 15facd8cfd
13 changed files with 200 additions and 131 deletions

14
packages/ui/src/custom-elements.d.ts vendored Normal file
View File

@@ -0,0 +1,14 @@
/**
* TypeScript declaration for the <file-diff> custom element.
* This tells TypeScript that <file-diff> is a valid JSX element in SolidJS.
* Required for using the precision-diffs web component in .tsx files.
*/
declare module 'solid-js' {
namespace JSX {
interface IntrinsicElements {
'file-diff': HTMLAttributes<HTMLElement>;
}
}
}
export {};