Commit 5806e066 authored by nanahira's avatar nanahira

add declaration of element

parent 95d69e13
......@@ -8,3 +8,10 @@ export function jsx(
) {
return segment(type, attrs, ...children);
}
declare global {
// eslint-disable-next-line @typescript-eslint/no-namespace
namespace JSX {
type Element = segment;
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment