1
Fork 0

Add extra types.

This commit is contained in:
Bauke 2023-09-22 13:45:15 +02:00
parent 9e8d32071e
commit 5f4f042b8d
Signed by: Bauke
GPG Key ID: C1C0F29952BCF558
1 changed files with 12 additions and 0 deletions

12
source/env.d.ts vendored Normal file
View File

@ -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;
}