Add extra types.
This commit is contained in:
parent
9e8d32071e
commit
5f4f042b8d
|
@ -0,0 +1,12 @@
|
||||||
|
// eslint-disable-next-line @typescript-eslint/triple-slash-reference
|
||||||
|
/// <reference types="astro/client" />
|
||||||
|
|
||||||
|
import {type JSX} from "preact";
|
||||||
|
|
||||||
|
declare global {
|
||||||
|
/** Shorthand for {@linkcode JSX.Element}. */
|
||||||
|
type JsxElement = JSX.Element;
|
||||||
|
|
||||||
|
/** An optional {@linkcode JsxElement}. */
|
||||||
|
type OptionalJsxElement = JsxElement | undefined;
|
||||||
|
}
|
Loading…
Reference in New Issue