fix: 修复 Windows clone 退化的 custom-elements.d.ts symlink

app/enterprise 两个包的 custom-elements.d.ts 是指向 ui 包的符号链接,
Windows clone 时退化成纯文本路径,导致全量 typecheck(pre-push 钩子)失败。
填入真实声明内容以恢复,与 CLI 逻辑无关。

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
2026-06-05 14:01:22 +08:00
parent b345dfcc50
commit 0f474f9f27
2 changed files with 34 additions and 2 deletions

View File

@@ -1 +1,17 @@
../../ui/src/custom-elements.d.ts 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_TAG_NAME]: HTMLAttributes<HTMLElement>
}
}
}
export {}

View File

@@ -1 +1,17 @@
../../ui/src/custom-elements.d.ts 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_TAG_NAME]: HTMLAttributes<HTMLElement>
}
}
}
export {}