summaryrefslogtreecommitdiffhomepage
path: root/vhosts/blog/nuldoc-src/jsx
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2025-03-28 23:29:44 +0900
committernsfisis <nsfisis@gmail.com>2025-03-28 23:30:59 +0900
commita9c67dddab90bda973d62fb189219cda119be58d (patch)
tree9bafcb20dde5a67570ca0bf12c50e10a773b263e /vhosts/blog/nuldoc-src/jsx
parent85fd80ace7fe19112a9d143b3cbbdcf8b7638abf (diff)
downloadnsfisis.dev-a9c67dddab90bda973d62fb189219cda119be58d.tar.gz
nsfisis.dev-a9c67dddab90bda973d62fb189219cda119be58d.tar.zst
nsfisis.dev-a9c67dddab90bda973d62fb189219cda119be58d.zip
fix(blog/nuldoc): fix type errors related to JSX
Diffstat (limited to 'vhosts/blog/nuldoc-src/jsx')
-rw-r--r--vhosts/blog/nuldoc-src/jsx/types.d.ts9
1 files changed, 8 insertions, 1 deletions
diff --git a/vhosts/blog/nuldoc-src/jsx/types.d.ts b/vhosts/blog/nuldoc-src/jsx/types.d.ts
index e47d7ffe..cbf68a4c 100644
--- a/vhosts/blog/nuldoc-src/jsx/types.d.ts
+++ b/vhosts/blog/nuldoc-src/jsx/types.d.ts
@@ -10,6 +10,8 @@ interface IntrinsicElementType {
children?: JSXNode;
className?: string;
id?: string;
+ // My JSX runtime does not use key. It is only for linter that complains about missing key.
+ key?: string;
}
declare global {
@@ -39,7 +41,7 @@ declare global {
};
article: IntrinsicElementType;
body: IntrinsicElementType;
- button: IntrinsicElementType;
+ button: IntrinsicElementType & { type: string };
canvas: { id?: string; "data-slide-link"?: string };
div: IntrinsicElementType;
footer: IntrinsicElementType;
@@ -72,5 +74,10 @@ declare global {
interface ElementChildrenAttribute {
children: unknown;
}
+
+ type LibraryManagedAttributes<_F, P> = P & {
+ // My JSX runtime does not use key. It is only for linter that complains about missing key.
+ key?: string;
+ };
}
}