summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Alexander Niebuhr <alexander@nbhr.io> 2023-12-04 18:46:21 +0100
committerGravatar GitHub <noreply@github.com> 2023-12-04 12:46:21 -0500
commit9887f241241f800e2907afe7079db070f3bfcfab (patch)
tree2751164ca7ae5f7c6b4ee7721c9b4ffafed66890
parent6a9669b810ddfcae6c537165a438190ea1e7a4bc (diff)
downloadastro-9887f241241f800e2907afe7079db070f3bfcfab.tar.gz
astro-9887f241241f800e2907afe7079db070f3bfcfab.tar.zst
astro-9887f241241f800e2907afe7079db070f3bfcfab.zip
chore: also export `DevToolbarApp` type for API (#9273)
* chore: also export `DevToolbarApp` type for API * chore: changeset * chore: resolve review comments Co-authored-by: Nate Moore <7118177+natemoo-re@users.noreply.github.com> * Update .changeset/smooth-gifts-train.md --------- Co-authored-by: Nate Moore <7118177+natemoo-re@users.noreply.github.com> Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
-rw-r--r--.changeset/smooth-gifts-train.md5
-rw-r--r--packages/astro/src/@types/astro.ts4
2 files changed, 8 insertions, 1 deletions
diff --git a/.changeset/smooth-gifts-train.md b/.changeset/smooth-gifts-train.md
new file mode 100644
index 000000000..95ebda97e
--- /dev/null
+++ b/.changeset/smooth-gifts-train.md
@@ -0,0 +1,5 @@
+---
+'astro': patch
+---
+
+Exports type for Dev Toolbar App under correct name
diff --git a/packages/astro/src/@types/astro.ts b/packages/astro/src/@types/astro.ts
index df475e3d6..773fb4be7 100644
--- a/packages/astro/src/@types/astro.ts
+++ b/packages/astro/src/@types/astro.ts
@@ -2578,7 +2578,7 @@ export interface ClientDirectiveConfig {
entrypoint: string;
}
-export interface DevOverlayPlugin {
+export interface DevToolbarApp {
id: string;
name: string;
icon: Icon;
@@ -2586,6 +2586,8 @@ export interface DevOverlayPlugin {
beforeTogglingOff?(canvas: ShadowRoot): boolean | Promise<boolean>;
}
+export type DevOverlayPlugin = DevToolbarApp;
+
export type DevOverlayMetadata = Window &
typeof globalThis & {
__astro_dev_overlay__: {